Esempio n. 1
0
 void Update()
 {
     if (Input.GetMouseButtonDown(0))
     {
         increase++;
         LogTextSpawner.Log("Hi " + increase.ToString());
     }
     else if (Input.GetMouseButtonDown(1))
     {
         increase++;
         LogTextSpawner.LogWarning("Warn " + increase.ToString());
     }
     else if (Input.GetKeyDown(KeyCode.A))
     {
         increase++;
         LogTextSpawner.LogError("Error " + increase.ToString());
     }
 }
Esempio n. 2
0
 void Awake()
 {
     // This method must be called in Awake()
     LogTextSpawner.SetUpSpawner(thePool);
 }