Ejemplo n.º 1
0
 //If a minion from the opposite team collides with the terminal, start hacking.
 //And change "HackedBy" to the opponent
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "minion" && other.gameObject.GetComponent <Minion>().player != player)
     {
         if (!laneController.isHacked)
         {
             laneController.HackedBy = player;
             laneController.UpdateHacking();
         }
     }
 }