Example #1
0
    void OnTriggerEnter(Collider other)
    {
        if (other.tag != "Player")
        {
            return;
        }

        level.storeIntValue("MagoElegido", numMago);
        this.isWaitingForActionToComplete = true;
        if (vignette != null)
        {
            vignette._wa_close(this);
        }
        state = 1;
    }
Example #2
0
 override public void effect()
 {
     if (active)
     {
         this._wm_pushSentenceBitsToMasterController();                     // código esté en el 'other'
         mcRef.getStorage().storeStringValue("CurrentWell", wellID);
         levelRef.mcRef.saveLocation(levelRef.locationName);                // script
         VignetteScript vignetteObject = GameObject.Find("Vignette").GetComponent <VignetteScript> ();
         this.isWaitingForActionToComplete = true;
         vignetteObject._wa_close(this);
     }
     else
     {
         //levelRef._wm_alert (rosetta.retrieveString(wellStrings.getStringId(0)));
     }
 }