Beispiel #1
0
        public Tile_Player CreatePlayer()
        {
            var player = new Tile_Player();

            player.IsBlock = false;

            return(player);
        }
Beispiel #2
0
        /// <summary>
        /// 加载游戏数据
        /// </summary>
        /// <returns></returns>
        private IEnumerator _loadGameData()
        {
            //PlayerData.Instance.LoadDataFromFile();

            // 第一次创建玩家
            mPlayer          = TileFactory.Instance.CreatePlayer();
            mPlayer.Position = PlayerData.Instance.LastPlayerPosition;

            yield return(null);
        }