Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     AdjustHealth(0);
     AdjustMonies(0);
     UpdateScore(0);
     quitAndRestart = FindObjectOfType <QuitAndRestart>();
 }
Exemplo n.º 2
0
 //make this a singleton
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     quitAndRestart = FindObjectOfType <QuitAndRestart>();
 }