//------------------------------------------------------------------------- // プレイヤーに関すること /// <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()); }
/// <summary> /// 指定されたプレイヤーの対になる相手を取得する /// </summary> public Player GetTargetPlayerBy(App.Player type) { return((type == App.Player.P1)? this.p2 : this.p1); }
/// <summary> /// 指定したプレイヤーを取得する /// </summary> public Player GetPlayer(App.Player type) { return((type == App.Player.P1)? this.p1 : this.p2); }
/// <summary> /// PlayerConfigを取得 /// </summary> public IPlayerConfig GetPlayerConfig(App.Player type) { return(this.players[type]); }