// Use this for initialization void Awake() { // Singleton initialization if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } // Hide the game over and info UI gameOverPanel.SetActive(false); infoPanel.SetActive(false); exitPanel.SetActive(false); _timeLeft = gameTime; _moves = 0; // Register to the dropped event to increment the moves counter foreach (var disk in disks) { disk.DroppedSuccess += Disk_Dropped;; } // Initialize the initial stick with the list of disks initialStick.Initialize(disks); }