コード例 #1
0
ファイル: GlobalScript.cs プロジェクト: etiens/VikingQuest
 public void SwitchPosition()
 {
     //Boat -> switch to harpooner
     if (Driver.HasControl)
     {
         Driver.ResetControls();
         SetupHarpooner();
     }
     //Harpooner -> switch to driver
     else
     {
         Harpooner.ResetControls();
         SetupDriver();
     }
 }
コード例 #2
0
ファイル: GlobalScript.cs プロジェクト: etiens/VikingQuest
    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
    }
コード例 #3
0
ファイル: GlobalScript.cs プロジェクト: etiens/VikingQuest
 public void AttachComponents()
 {
     Harpooner.SetFrontHarpooningStation();
     AttachCamera();
 }