Esempio n. 1
0
 void OnMouseExit()
 {
     if (IsInCorrectScene())
     {
         mouseCursorManager.SetIdleCursor();
         buildManager.DestroySelectionTowerToBuildInstance();
     }
 }
Esempio n. 2
0
 //Attack the main tower
 private void EnemyAttack()
 {
     if (IsInCorrectScene())
     {
         masterTowerScript.EnemyAttack();
         mouserCursorManager.SetIdleCursor();
         actionManager.KillEnemy();
         Destroy(gameObject);
     }
 }
Esempio n. 3
0
 private void OnMouseExit()
 {
     if (IsInCorrectScene())
     {
         icosphereLight.intensity = initialIntensity;
         mouseCursorManage.SetIdleCursor();
     }
 }
Esempio n. 4
0
 private void OnMouseExit()
 {
     if (IsInCorrectScene() == false)
     {
         return;
     }
     if (GetComponent <TeleportPlace>() == null)
     {
         return;
     }
     mouseCursorManage.SetIdleCursor();
 }
Esempio n. 5
0
 private void OnMouseOver()
 {
     if (Input.GetMouseButtonDown(1))
     {
         if (IsAround(playerSpawnOnTower, player.transform))
         {               // If player is at this tower, returns
             return;
         }
         else if (!player.GetComponent <PlayerController>().teleporting)
         {               // If not and player is not teleporting
             player.GetComponent <PlayerController>().teleporting = true;
             StartCoroutine(TeleportEvents());
             mouseCursosManage.SetIdleCursor();
         }
     }
 }