Esempio n. 1
0
 public void SwitchPosition()
 {
     //Boat -> switch to harpooner
     if (Driver.HasControl)
     {
         Driver.ResetControls();
         SetupHarpooner();
     }
     //Harpooner -> switch to driver
     else
     {
         Harpooner.ResetControls();
         SetupDriver();
     }
 }
Esempio n. 2
0
    public void OnQTECompleted(bool success)
    {
        QTEManager.QTECompletedEvent -= OnQTECompleted;

        if (success)
        {
            UIScript.Instance.EnableAllUI();
            Boat.Health = 30f;
            if (harpooner.HasControl)
            {
                Harpooner.GetCurrentStation().showTrajectoryLine();
            }
        }
        else
        {
            DeathUponYou();
        }
        driver.LeaveQTEAnimation();
        harpooner.LeaveQTEAnimation();
        // Do something with QTE completion
    }
Esempio n. 3
0
 public void AttachComponents()
 {
     Harpooner.SetFrontHarpooningStation();
     AttachCamera();
 }