Beispiel #1
0
        //triggered by OnApplicationPause and OnApplicationFocus
        public override void DpnpResume()
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            Composer.Resume();
#endif
            //SetPeripheralFollowSystem();
            StartCoroutine(SetPeripheralFollowSystem_Delay());
        }
        //triggered by OnApplicationPause and OnApplicationFocus
        private IEnumerator _OnResume()
        {
            yield return(null);

            Composer.Resume();
            foreach (KeyValuePair <string, PeripheralList> i in s_Peripherals)
            {
                if (i.Value.list.Count > 0)
                {
                    foreach (DpnBasePeripheral s in i.Value.list)
                    {
                        s.DpnpResume();
                    }
                }
            }
        }