/// <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); }
// Use this for initialization void Start() { DamageDealer = this.gameObject.GetComponentInParent <ICanDealDamage>(); // rb = this.gameObject.GetComponent<Rigidbody>(); }