Example #1
0
 private void PauseEventHandler(object sender, EventArgs args)
 {
     if (PartyParrotManager.Instance.IsPaused)
     {
         _pauseState.Save(Rigidbody);
     }
     else
     {
         _pauseState.Restore(Rigidbody);
     }
     Rigidbody.isKinematic = PartyParrotManager.Instance.IsPaused;
 }