Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (shield.GetShieldOnCooldownStatus())
        {
            HideAbility(iceShield);
        }

        if (!shield.GetShieldOnCooldownStatus())
        {
            ShowAbility(iceShield);
        }

        if (fire.GetFireBallCooldownStatus())
        {
            HideAbility(fireBall);
        }

        if (!fire.GetFireBallCooldownStatus())
        {
            ShowAbility(fireBall);
        }

        if (port.GetTeleportCooldownStatus())
        {
            HideAbility(teleport);
        }

        if (!port.GetTeleportCooldownStatus())
        {
            ShowAbility(teleport);
        }

        if (nuke.isNukeOnCooldown())
        {
            HideAbility(fireNuke);
        }

        if (!nuke.isNukeOnCooldown())
        {
            ShowAbility(fireNuke);
        }


        if (speed.GetHasteCooldownStatus())
        {
            HideAbility(haste);
        }

        if (!speed.GetHasteCooldownStatus())
        {
            ShowAbility(haste);
        }
    }