Esempio n. 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;
    }
Esempio n. 2
0
    public void TriggerTitleAnimation()
    {
        //Enable the object and play the animation.
        TitleAnimation.gameObject.SetActive(true);


        CurtainLeft.Reset();
        CurtainRight.Reset();
        curtainsDrawn = false;

        TitleAnimation.Reset();
        TitleAnimation.Play(true);

        AudioPlayer.GetPlayer().PlayMenuSFX(AudioPlayer.MenuSFX.SlotPushed);
    }
Esempio n. 3
0
 //Called when fade to black is called.
 //Closes curtains when screen fade.
 void OnFadeToBlack()
 {
     CurtainLeft.Reset();
     CurtainRight.Reset();
 }