private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            GenericUIManager.ChangeText("Singleton Instance already exists!");
            Destroy(gameObject);
        }


        DontDestroyOnLoad(gameObject);
    }
Esempio n. 2
0
 void Punch(GameObject actor)
 {
     GenericUIManager.ChangeText(this.GetType().Name);
     GenericUIManager.SetTextColor(Color.cyan);
 }
Esempio n. 3
0
 void Fire(GameObject actor)
 {
     GenericUIManager.ChangeText(this.GetType().Name);
     GenericUIManager.SetTextColor(Color.red);
 }
Esempio n. 4
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!!");
 }
Esempio n. 6
0
 void Jump(GameObject actor)
 {
     GenericUIManager.ChangeText(this.GetType().Name);
     GenericUIManager.SetTextColor(Color.green);
 }