예제 #1
0
        // 切换世界
        public void SwitchToWorld(WorldName name)
        {
            if ((int)name < 0 || (int)name >= WorldConstants.WORLDS_NUM)
            {
                Debug.Log("Error : Switch World Failed - worldIndex out of range. World name: " + name);
                return;
            }

            AttachedGameObject.GetComponent <PlayerMove>().MoveToWorld(name);
        }
예제 #2
0
 // 是否响应玩家输入
 public bool IsInputAvailable()
 {
     return(AttachedGameObject.GetComponent <PlayerMove>().IsInputAvailable());
 }
예제 #3
0
 // 接受玩家输入
 public void EnableInput()
 {
     AttachedGameObject.GetComponent <PlayerMove>().EnableInput();
 }