示例#1
0
        //-------------------------------------------------------------------------
        // プレイヤーに関すること

        /// <summary>
        /// プレイヤーを生成
        /// </summary>
        private Player CreatePlayer(App.Player type)
        {
            Player.Props props = new Player.Props {
                Type     = type,
                Parent   = CacheTransform,
                Location = this.locations[type],
                Config   = SaveSystem.Instance.GetPlayerConfig(type),
                CatType  = App.Cat.Shiro,
            };

            return(new Player(props).Init());
        }
示例#2
0
 /// <summary>
 /// 指定されたプレイヤーの対になる相手を取得する
 /// </summary>
 public Player GetTargetPlayerBy(App.Player type)
 {
     return((type == App.Player.P1)? this.p2 : this.p1);
 }
示例#3
0
 /// <summary>
 /// 指定したプレイヤーを取得する
 /// </summary>
 public Player GetPlayer(App.Player type)
 {
     return((type == App.Player.P1)? this.p1 : this.p2);
 }
示例#4
0
 /// <summary>
 /// PlayerConfigを取得
 /// </summary>
 public IPlayerConfig GetPlayerConfig(App.Player type)
 {
     return(this.players[type]);
 }