void Update() { if (Pet.hasFight && hasStart) { if (Time.time - lastUsePSkill > curPet.CD) { curPet.Ability(); lastUsePSkill = Time.time; } } }