Esempio n. 1
0
 /// <summary>
 /// Обнулить переменные игрока
 /// </summary>
 public void Decreaser()
 {
     if (_attackedObject != null)
     {
         PlayerAbstract _pA = _attackedObject.GetComponent <PlayerAbstract>();
         _pA.ClearPoint(_point);
         _pA.DecreaseCountOfTurrelFighters(gameObject);
         _pA.ToMoveBack();
         _pA.ChangeCanToNull();
         _pA.ChangeEnemy(); // changing enemy, if it haves
     }
 }
Esempio n. 2
0
 public void setInstantedPlayer(PlayerAbstract playerHelper)
 {
     instantedPlayer = playerHelper;
 }