Esempio n. 1
0
 private void Update()
 {
     if (waitScript.Wait(2))
     {
         FadeIn();
     }
 }
Esempio n. 2
0
 public void GetAway(bool flee)
 {
     if ((waitScript.Wait(waitTime) && hasColided) || flee)
     {
         if (flee)
         {
             quincarnonScript.speed = 0.1f;
             SayLine(loadXmlScript.MiscClass.quincarnonFlee);
         }
         else
         {
             SayLine(loadXmlScript.MiscClass.quincarnonNoDate);
         }
         quincarnonScript.Index          = 0;
         quincarnonScript.RoutineIndex   = 1;
         quincarnonScript.SpecialRoutine = true;
         quincarnonScript.enabled        = true;
         hasColided = false;
         deathCollider.SetActive(false);
     }
 }
Esempio n. 3
0
    private void Update()
    {
        if (trapArmed && !saylineScript.gameObject.GetComponent <TextAppearanceManager>().enabled&& playerScript.IsMenuOn && !finish)
        {
            canvasTrap.SetActive(false);
            playerScript.IsMenuOn = false;
            sprRend.sprite        = trapArmedSprite;
            waitScript.Time       = Time.time;
            seconds = 5;
            finish  = true;
        }

        if (waitScript.Wait(seconds))
        {
            snakeCaught = true;
        }

        //if (Input.GetKeyDown(KeyCode.P))
        //{
        //    interactScript.TakeObject(transform.GetChild(0).gameObject);
        //    inventoryScript.RemoveInventoryObject(emptyBox);
        //    killRosita.SetActive(true);
        //}
    }