public Tile_Player CreatePlayer() { var player = new Tile_Player(); player.IsBlock = false; return(player); }
/// <summary> /// 加载游戏数据 /// </summary> /// <returns></returns> private IEnumerator _loadGameData() { //PlayerData.Instance.LoadDataFromFile(); // 第一次创建玩家 mPlayer = TileFactory.Instance.CreatePlayer(); mPlayer.Position = PlayerData.Instance.LastPlayerPosition; yield return(null); }