This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
using UnityEngine.UI; | |
public class DoorOpen: MonoBehaviour//扉に貼り付けるスクリプト | |
{ | |
public enum MYEVENT{ | |
Next //など他にも使いたいイベントを定義していく |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum KEYINFO | |
{ | |
None, Never, Key1, Key2 | |
} | |
[System.Serializable] | |
public class ItemData{ | |
public string name; | |
public KEYINFO keyInfo; | |
public ItemData()//コンストラクタの定義 | |
{ |