Exemplo n.º 1
0
    public IEnumerator ReturntoFPC()
    {
        TriHUD.IAM.startDisappear();
        yield return(new WaitForSeconds(2f));

        controllerActive = false;
        FPcam.enabled    = true;
        FPC.enabled      = true;
        Lasercam.enabled = false;
        ui.ActivateHUD(true);
        animLaser.SetBool(closeLaser, true);
        yield return(new WaitForSeconds(1.2f));

        ResetLaserAnimator();
        lppc.ActivateHUD();
        ui.AdvanceObjective();
        pauseMenu.pauseMenuAccessible = true;


//		PickUpItem [1].SetHaloOn();
//		PickUpItem [1].HuntActivated = true;
        for (int i = 0; i < PickUpItem.Length; i++)
        {
            PickUpItem [i].SetHaloOn();
            PickUpItem [i].HuntActivated = true;
        }
    }
 void Update()
 {
     if (doneOnce == false)
     {
         if (LaserPickUp == true && PartialMirrorPickUp == true && FullMirrorPickUp == true && BatteryPickUp == true)
         {
             LaserPartsFound = true;
             ui.AdvanceObjective();
             doneOnce = true;
         }
     }
 }