private PlayerModel GetPlayerModel(PlayerType playerType) { PlayerScriptables scriptables = playerScriptableList.playerScriptables.Find(x => x.playerType.Equals(playerType)); PlayerModel model = new PlayerModel(scriptables); return(model); }
public PlayerModel(PlayerScriptables scriptables) { playerType = scriptables.playerType; jumpStep = scriptables.jumpStep; playerView = scriptables.playerView; horizontalStep = scriptables.horizontalStep; }