Exemple #1
0
        private PlayerModel GetPlayerModel(PlayerType playerType)
        {
            PlayerScriptables scriptables = playerScriptableList.playerScriptables.Find(x => x.playerType.Equals(playerType));
            PlayerModel       model       = new PlayerModel(scriptables);

            return(model);
        }
Exemple #2
0
 public PlayerModel(PlayerScriptables scriptables)
 {
     playerType     = scriptables.playerType;
     jumpStep       = scriptables.jumpStep;
     playerView     = scriptables.playerView;
     horizontalStep = scriptables.horizontalStep;
 }