Beispiel #1
0
        public override async void DidEnterBackground(UIApplication application)
        {
            await LocalIO.SaveDataAsync();

            // Use this method to release shared resources, save user data, invalidate timers and store the application state.
            // If your application supports background exection this method is called instead of WillTerminate when the user quits.
        }
Beispiel #2
0
        public override async void OnTerminate()
        {
            base.OnTerminate();
            await LocalIO.SaveDataAsync();

            UnregisterActivityLifecycleCallbacks(this);
        }
    // Start is called before the first frame update
    void Start()
    {
        // Will Implement when we have a Start and End Menu
        //DontDestroyOnLoad(this.gameObject);
        //Debug.Log(this.name);

        LocalIO.FindDirectory();
    }