Beispiel #1
0
    IEnumerator ShootDuel()
    {
        DuelManager.instance.endText.text = "Shoot!";
        while (!(Input.deviceOrientation == DeviceOrientation.LandscapeLeft || Input.deviceOrientation == DeviceOrientation.LandscapeRight || Input.GetKey(KeyCode.Z)))
        {
            yield return(null);
        }
        while (!(Input.deviceOrientation == DeviceOrientation.Portrait || Input.deviceOrientation == DeviceOrientation.PortraitUpsideDown || Input.GetKey(KeyCode.X)))
        {
            yield return(null);
        }
        DuelManager.Vibrate();

        DuelManager.instance.player.ShootSomeone();
    }
Beispiel #2
0
 IEnumerator ShootGroup()
 {
     DuelManager.instance.endText.text = "Shoot!";
     StartCompassReading();
     while (!(Input.deviceOrientation == DeviceOrientation.LandscapeLeft || Input.deviceOrientation == DeviceOrientation.LandscapeRight || Input.GetKey(KeyCode.Z)))
     {
         yield return(null);
     }
     while (!(Input.deviceOrientation == DeviceOrientation.Portrait || Input.deviceOrientation == DeviceOrientation.PortraitUpsideDown || Input.GetKey(KeyCode.X)))
     {
         yield return(null);
     }
     finishedShooting = true;
     DuelManager.Vibrate();
 }
Beispiel #3
0
 public void DisplayEndResultGroup(bool won, string winner)
 {
     DuelManager.instance.GetMiniGame(currentMGIndex).ClearMiniGame();
     DuelManager.instance.restartButton.SetActive(true);
     DuelManager.instance.restartNumber.SetActive(true);
     DuelManager.instance.UpdatePlayerRestartCount(false);
     if (won)
     {
         DuelManager.instance.endText.text = "You Won!!!";
     }
     else
     {
         DuelManager.Vibrate();
         DuelManager.instance.endText.text = winner + " won!";
     }
 }