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);
    }
Example #3
0
 void Punch(GameObject actor)
 {
     GenericUIManager.ChangeText(this.GetType().Name);
     GenericUIManager.SetTextColor(Color.cyan);
 }
Example #4
0
 void Fire(GameObject actor)
 {
     GenericUIManager.ChangeText(this.GetType().Name);
     GenericUIManager.SetTextColor(Color.red);
 }
Example #5
0
 void Roll(GameObject actor)
 {
     GenericUIManager.ChangeText(this.GetType().Name);
     GenericUIManager.SetTextColor(Color.yellow);
 }
 public void Unlock()
 {
     GenericUIManager.ChangeText("You have unlocked the" + AchievementName + " achievement!!");
 }
Example #7
0
 void Jump(GameObject actor)
 {
     GenericUIManager.ChangeText(this.GetType().Name);
     GenericUIManager.SetTextColor(Color.green);
 }