private DialogUI[] _DialogUIs; // ダイアログ void Awake() { if (instance == null) { instance = this; } }
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { GenericUIManager.ChangeText("Singleton Instance already exists!"); Destroy(gameObject); } DontDestroyOnLoad(gameObject); }
void Punch(GameObject actor) { GenericUIManager.ChangeText(this.GetType().Name); GenericUIManager.SetTextColor(Color.cyan); }
void Fire(GameObject actor) { GenericUIManager.ChangeText(this.GetType().Name); GenericUIManager.SetTextColor(Color.red); }
void Roll(GameObject actor) { GenericUIManager.ChangeText(this.GetType().Name); GenericUIManager.SetTextColor(Color.yellow); }
public void Unlock() { GenericUIManager.ChangeText("You have unlocked the" + AchievementName + " achievement!!"); }
void Jump(GameObject actor) { GenericUIManager.ChangeText(this.GetType().Name); GenericUIManager.SetTextColor(Color.green); }