Exemplo n.º 1
0
 /// <summary>
 /// called by attacker
 /// </summary>
 /// <param name="amount"></param>
 /// <param name="source"></param>
 public void TakeDamage(float amount, ICanDealDamage source)
 {
     Debug.Log("yo3");
     updateHealth(-amount);
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     DamageDealer = this.gameObject.GetComponentInParent <ICanDealDamage>();
     //   rb = this.gameObject.GetComponent<Rigidbody>();
 }