Пример #1
0
    public void CostsClick()
    {
        if (isCost)
        {
            return;
        }

        if (isPurse)
        {
            purses.Play("Off");
            pursesAnim.Play("OutToRight");
        }
        else
        {
            incomes.Play("Off");
            incomesAnim.Play("Out");
        }

        costs.Play("On");
        costsAnim.Play("In");

        isCost   = true;
        isPurse  = false;
        isIncome = false;

        mainCamera.ChangeBgToCost();
    }