FadeToClear() public method

public FadeToClear ( ) : void
return void
Ejemplo n.º 1
0
 // Start the action
 public override void Start()
 {
     if (this.fadeToBlack)
     {
         fade.FadeToBlack();
     }
     else
     {
         fade.FadeToClear();
     }
 }
Ejemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     if (_enabled)
     {
         if (StateManager.Instance.State == GameState.noState && _nextDialogue < dialogues.Count)
         {
             // count upwards
             _nextDialogue++;
             // start dialogue
             if (_nextDialogue < dialogues.Count)
             {
                 string title = dialogues[_nextDialogue];
                 if (title == "NextSlide")
                 {
                     PowerPointSlide.instance.Advance();
                 }
                 else if (title == "FadeToBlack")
                 {
                     SceneFadeInOut.FadeToBlack();
                 }
                 else if (title == "FadeToClear")
                 {
                     SceneFadeInOut.FadeToClear();
                 }
                 else
                 {
                     Dialogue.StartDialogue(dialogues[_nextDialogue], null);
                 }
             }
         }
         else if (_nextDialogue == dialogues.Count)
         {
             if (skipSetup)
             {
                 LevelManager.Instance.StartBattle();
                 _enabled = false;
             }
             else
             {
                 gameObject.AddComponent <IntermissionMenu>();
                 _enabled = false;
             }
         }
     }
 }