Esempio n. 1
0
 public static void CleanResources()
 {
     Instance.StartCoroutine(CocoWait.WaitForFrame(1, () => {
         Resources.UnloadUnusedAssets();
         System.GC.Collect();
     }));
 }
Esempio n. 2
0
        protected override void Start()
        {
            base.Start();
            RegisterListener(ListenStartPoint.OnStart);

            StartCoroutine(CocoWait.WaitForFrame(1, () => RegisterListener(ListenStartPoint.AfterStart)));
        }