// instanciate the round settings public RoundSettings(MovementID _moveID = MovementID.walk, EnemyID _enemyID = EnemyID.none, CombatID _combatID = CombatID.none, TerrainID _terrainID = TerrainID.open) { moveID = _moveID; enemyID = _enemyID; combatID = _combatID; terrainID = _terrainID; moveInfo = MovementSettings.GetMovement(moveID); }
public static MovementInfo GetMovement(MovementID id) { switch (id) { case MovementID.walk: return(walk); case MovementID.fast: return(fast); default: Debug.LogWarning("Non supported MovmentID asked for movement type, default returned"); return(walk); } }