add games
This commit is contained in:
22
assignment9final/Assets/DungeonModules/Scripts/DoorAOpen.cs
Normal file
22
assignment9final/Assets/DungeonModules/Scripts/DoorAOpen.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class DoorAOpen : MonoBehaviour
|
||||
{
|
||||
|
||||
// Use this for initialization
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
}
|
||||
void OnTriggerEnter(Collider other)
|
||||
{
|
||||
GetComponent<Animator>().SetTrigger("DoorATrigger");
|
||||
}
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 12ecde3c6a9545943bebd5e84de20d17
|
||||
timeCreated: 1515272808
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user