// Do damage will need wait cooldown public int DoDamage() { if (isCoolDown) { lastDamageTime = Time.time; return weaponBehavior.DoDamage(); } Debug.Log("still cooling!"); return 0; }