private void Start() { achievementManager = AchievementManager.instance; audioManager = AudioManager.instance; highscoreManager = HighscoreManager.instance; hud = GetComponent <PlayerHud>(); playerControl = GetComponent <PlayerControl>(); playerScore = GetComponent <PlayerScore>(); scoreboard = FindObjectOfType <Scoreboard>(); shopManager = ShopManager.instance; }
private void Awake() { instance = this; }