1
This commit is contained in:
18
unity/Assets/Script/UI/UIOpen.cs
Normal file
18
unity/Assets/Script/UI/UIOpen.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class UIOpen : UIWindow
|
||||
{
|
||||
Door door;
|
||||
private void Awake()
|
||||
{
|
||||
door = GameObject.Find("Door").GetComponent<Door>();
|
||||
}
|
||||
public override void OnYesClick()
|
||||
{
|
||||
door.isOpen = true;
|
||||
|
||||
base.OnYesClick();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user