//------------------------------------------------------------------------- // 基本的なメソッド /// <summary> /// コンストラクタ /// </summary> public Player(Vector2Int coord) { Chip = MapChipFactory.Instance.CreatePlayerChip(); Reset(coord); Status.Props props = new Status.Props("無職", 10, 10, 2); Status = new Status(props); this.item = null; this.state.Add(ActionPhase.Idle); this.state.Add(ActionPhase.Move, MoveEnter, MoveUpdate, MoveExit); this.state.Add(ActionPhase.AttackStart, AttackStartEnter, AttackStartUpdate, AttackStartExit); this.state.Add(ActionPhase.Damage, DamageEnter, DamageUpdate); }
public Props(Vector2Int coord, EnemyChipType chipType, Status.Props statusProps) { Coord = coord; ChipType = chipType; StatusProps = statusProps; }