Example #1
0
    void TryAddTurret()
    {
        if (PlayerCommands.Get().isAddingTurret)
        {
            return;
        }

        if (PlayerCommands.Get().TryAddTurret())
        {
        }
        else
        {
            moneyCounter.FlashRed();
        }
    }
    public void TryAddCubo()
    {
        if (!PlayerCommands.Get().EnoughRoomForCubos())
        {
            curCubos.FlashRed();
            return;
        }

        if (PlayerCommands.Get().TryAddCubo())
        {
            //play sound and stuff
        }
        else
        {
            moneyCounter.FlashRed();
        }
    }