private void Start() { navigator = Harmony.Finder.Navigator; pauseMenuScreen = GetComponent <Canvas>(); pauseController = Harmony.Finder.PauseController; levelLoader = Harmony.Finder.LevelLoader; gameSettings = Harmony.Finder.GameSettings; }
private IEnumerator Start() { _playerPrefab = SkinDataHolder.GetPlayerSkinData().players[SkinnController.currentSkin].PlayerHolder; _opponents = new List <GameObject>(); //for (var i = 0; i < SkinDataHolder.GetPlayerSkinData().opponents.Count; i++) _opponents.Add(SkinDataHolder.GetPlayerSkinData().opponents[i].PlayerHolder); _opponents.AddRange(SkinDataHolder.GetPlayerSkinData().opponents.Select(t => t.PlayerHolder)); yield return(null); _roadCount = DataHolder.GetRoadCount(); GeneratePlayerAndOpponents(); PauseController.SetPause(); }