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

        if (isCost)
        {
            costs.Play("Off");
            costsAnim.Play("Out");
            pursesAnim.Play("InFromRight");
        }
        else
        {
            incomes.Play("Off");
            incomesAnim.Play("Out");
            pursesAnim.Play("InFromLeft");
        }

        purses.Play("On");

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

        mainCamera.ChangeBgToPurse();
    }