void OnClick() { if (cd_bool == false) { col.enabled = false; cd_bool = true; powerSprite.fillAmount = 1; currentPowerCDTime = powerCDTime; powerNumber--; } pp.TakePower(powerAdd); }
public void Click(bool canCD) { if (canCD == true) { if (cd_bool == false) { cdValue.enabled = true; col.enabled = false; cd_bool = true; sprite.fillAmount = 1; currentTime = cdTime; pPower.TakePower(usePower); //能量消耗 } } }