private void CreateIsland(GameModel model) { PrefabLoader.LoadAndGetComponent<IslandView>(iv => { iv.transform.SetParent(transform); iv.CreateIsland(model.island); }); }
private void CreatePlayerView(GameModel model) { PrefabLoader.LoadAndGetComponent<PlayersView>(pv => { pv.transform.SetParent(canvas.transform, false); pv.Init(model.players, model.currentPlayer); }); }
public void Init(GameModel model) { CreateIsland(model); CreatePlayerView(model); }