protected virtual void LaunchRocket(RocketType rocketType) { if (CheckLaunchPossible()) { float coolDown = rocketLaunchSystem.InitiateLaunch(this, rocketType, GetRocketSendDirection()).GetRocketCooldown(); stats.Cooldown = coolDown; CooldownChanged?.Invoke(coolDown); } }
protected void InitGUI() { HPchanged?.Invoke(stats.HP); CooldownChanged?.Invoke(stats.Cooldown); }