コード例 #1
0
 /// <summary>
 /// 動作停止。
 /// </summary>
 /// <param name="isActive"></param>
 public void Pause(bool isActive)
 {
     isPaused = isActive;
     if (isActive)
     {
         climber.deltaTimeScale = 0f;
         jumper.deltaTimeScale  = 0f;
         runner.StopAgent();
         animatorCtrl.Stop();
     }
     else
     {
         climber.deltaTimeScale = 1f;
         jumper.deltaTimeScale  = 1f;
         runner.StartAgent();
         animatorCtrl.Play();
     }
 }