Пример #1
0
    public void DrawCurtain(bool forceClosed = false)
    {
//		Debug.LogError("Curtain Drawn");

        if (curtainsDrawn)
        {
            return;
        }

        if (forceClosed)
        {
            CurtainLeft.Reset();
            CurtainRight.Reset();
        }


        //TriggerTitleAnimation();
        //return;

        //CurtainLeft.Reset();
        CurtainLeft.Play(true);

        //CurtainRight.Reset();
        CurtainRight.Play(true);

        curtainsDrawn = true;
    }
Пример #2
0
    public void PullCurtain()
    {
        if (!curtainsDrawn)
        {
            return;
        }

        //	Debug.LogError("Curtain Pull");

        CurtainLeft.Play(false);
        CurtainRight.Play(false);

        curtainsDrawn = false;

        //Disable the title on curtain pull.
        TitleAnimation.gameObject.SetActive(false);
    }