示例#1
0
 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;
     }
 }
示例#2
0
 public void LaunchWithIndex()
 {
     MinigameManager.LaunchMinigame(this.indexToLaunch);
 }
示例#3
0
 public void LaunchMinigame()
 {
     MinigameManager.LaunchMinigame();
 }