Esempio n. 1
0
 void Awake()
 {
     if (control == null)
     {
         DontDestroyOnLoad(gameObject);
         control = this;
     }
     else if (control != this)
     {
         Destroy(gameObject);
     }
 }
Esempio n. 2
0
 public void mapScoreUIswitch()
 {
     if (GameControl_map.GetScore() >= GameControl_map.thresh)
     {
         winUI.SetActive(true);
     }
     else if (Experiment1.round_count == GameControl_map.maxRounds - 1)
     {
         winUI.SetActive(true);
     }
     else
     {
         Experiment1.round_count++;
         print("Round: " + Experiment1.round_count);
         loseUI.SetActive(true);
     }
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     score2print = GameControl_map.GetScore();
     txt         = gameObject.GetComponent <Text>();
     txt.text    = "Score : " + score2print.ToString("F0") + " correct";
 }