Ejemplo n.º 1
0
 public override void Update()
 {
     if (this.state == Event2dAction_BGMStop.STOP_STATE.PREPARE)
     {
         if (!MonoSingleton <MySound> .Instance.StopBGMFadeOut(this.fadeOutTime))
         {
             return;
         }
         if (this.Async)
         {
             this.ActivateNext();
             this.state = Event2dAction_BGMStop.STOP_STATE.STOPPED;
         }
         else
         {
             this.state       = Event2dAction_BGMStop.STOP_STATE.STOPPING;
             this.elapsedtime = 0.0f;
         }
     }
     else
     {
         if (this.state != Event2dAction_BGMStop.STOP_STATE.STOPPING)
         {
             return;
         }
         this.elapsedtime += Time.get_deltaTime();
         if ((double)this.elapsedtime <= (double)this.fadeOutTime)
         {
             return;
         }
         this.state = Event2dAction_BGMStop.STOP_STATE.STOPPED;
         this.ActivateNext();
     }
 }
Ejemplo n.º 2
0
 public override void Update()
 {
     if (this.state == Event2dAction_BGMStop.STOP_STATE.PREPARE)
     {
         if (MonoSingleton <MySound> .Instance.StopBGMFadeOut(this.fadeOutTime))
         {
             if (this.Async)
             {
                 this.ActivateNext();
                 this.state = Event2dAction_BGMStop.STOP_STATE.STOPPED;
             }
             else
             {
                 this.state       = Event2dAction_BGMStop.STOP_STATE.STOPPING;
                 this.elapsedtime = 0.0f;
             }
         }
         if (!Object.op_Implicit((Object)SceneBattle.Instance))
         {
             return;
         }
         SceneBattle.Instance.EventPlayBgmID = (string)null;
     }
     else
     {
         if (this.state != Event2dAction_BGMStop.STOP_STATE.STOPPING)
         {
             return;
         }
         this.elapsedtime += Time.get_deltaTime();
         if ((double)this.elapsedtime <= (double)this.fadeOutTime)
         {
             return;
         }
         this.state = Event2dAction_BGMStop.STOP_STATE.STOPPED;
         this.ActivateNext();
     }
 }
Ejemplo n.º 3
0
 public override void OnActivate()
 {
     this.elapsedtime = 0.0f;
     this.state       = Event2dAction_BGMStop.STOP_STATE.PREPARE;
 }