// 切换世界 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); }
// 是否响应玩家输入 public bool IsInputAvailable() { return(AttachedGameObject.GetComponent <PlayerMove>().IsInputAvailable()); }
// 接受玩家输入 public void EnableInput() { AttachedGameObject.GetComponent <PlayerMove>().EnableInput(); }