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();
     }
 }
Beispiel #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();
     }
 }
Beispiel #3
0
 public override void OnActivate()
 {
     this.elapsedtime = 0.0f;
     this.state       = Event2dAction_BGMStop.STOP_STATE.PREPARE;
 }