Пример #1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.name == "hero")
     {
         Debug.Log("Battle started!");
         scrollManager.Pause();
         this.battling   = true;
         this.lastAction = Time.time - turnLength;
     }
 }