void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.tag == "Player" && !isWorking && Time.time - timerWhenCollided > 1.0f) { timerWhenCollided = Time.time; MinigameManager.LaunchMinigame(); MinigameManager.OnMinigameWin += Win; MinigameManager.OnMinigameLost += Lose; } }
public void LaunchWithIndex() { MinigameManager.LaunchMinigame(this.indexToLaunch); }
public void LaunchMinigame() { MinigameManager.LaunchMinigame(); }