Пример #1
0
 public void ReachDestination()
 {
     if (CurrentPath.EndInStronghold)
     {
         GameManager.Instance.StrongholdDamage(MonsterPrototype.DamageOnStronghold);
         CurrentPath = null;
         GameObject.Destroy(gameObject);
     }
     else
     {
         CurrentPath            = CurrentPath.GetAnyDestinationPath(GameManager.Instance.Game.CurrentLevel);
         CurrentCheckpointIndex = 0;
     }
 }