Exemplo n.º 1
0
    public void incrementStatus()
    {
        lockStatus++;
        dialogue.SetDialogState("stage" + lockStatus);

        //Get rid of the glow around the door when the final puzzle is solved.
        if (lockStatus == 3)
        {
            GameObject          DoorGlow = GameObject.Find("BossDoorGlow");
            EnableDisableScript eds      = (EnableDisableScript)DoorGlow.GetComponent("EnableDisableScript");
            if (eds != null)
            {
                eds.Disable();
            }
        }
    }
 public void Disable()
 {
     if (rend != null)
     {
         rend.enabled = (false);
     }
     if (co2d != null)
     {
         co2d.enabled = (false);
     }
     if (colidRef != null)
     {
         colidRef.DisableCollider();
     }
     if (glowScript != null)
     {
         glowScript.Disable();
     }
 }