Exemplo n.º 1
0
        public void Punch()
        {
            if (_target != null)
            {
                _target.Health.CurrentHealthAmount -= (int)Damage;
                if (_target.Health.CurrentHealthAmount < 0)
                {
                    Damage += 1;
                    transform.localScale *= 1.2f;

                    _target = null;
                }
            }
        }
Exemplo n.º 2
0
 public void SetTarget(ArtificialIntelligence target)
 {
     _target = (SlaveBrains)target;
 }