Example #1
0
        public void ChangeController(KanGameController controller)
        {
            Context.ClearLocal();

            CurrentController?.Unload(); // Do the generic unloading.
            CurrentController?.OnUnload();

            CurrentController = controller;
            controller.OnInitialize();
        }