Пример #1
0
        /// <summary>
        /// 返回上一个action
        /// </summary>
        public void BackGameAction()
        {
            IGameAction old = currentAction;

            currentAction = currentAction.previous;
            old.Dispose();

            if (currentAction == null)
            {
                GameMain.instance.LoadScene(GameMain.instance.startScene);
            }
        }