private void OnApplicationPause(bool pause)
 {
     if (pause)
     {
         foreach (KeyValuePair <string, PeripheralList> i in s_Peripherals)
         {
             if (i.Value.list.Count > 0)
             {
                 foreach (DpnBasePeripheral s in i.Value.list)
                 {
                     s.DpnpPause();
                 }
             }
         }
         Composer.Pause();
     }
     else
     {
         StartCoroutine(_OnResume());
     }
 }
示例#2
0
        public override void DpnpPause()
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            Composer.Pause();
#endif
        }