Exemplo n.º 1
0
 public override void OnAnimEvent(AnimEventID id)
 {
     if (id == AnimEventID.ShowMap)
     {
         this.m_Map.gameObject.SetActive(true);
         return;
     }
     if (id == AnimEventID.ShowMapEnd)
     {
         this.m_CanDisable = true;
         if (!this.m_CursorVisible && GreenHellGame.IsPCControllerActive())
         {
             CursorManager.Get().ShowCursor(true, false);
             this.m_CursorVisible = true;
         }
         HUDMap.Get().Activate();
         return;
     }
     if (id == AnimEventID.HideMapEnd)
     {
         this.Stop();
         return;
     }
     base.OnAnimEvent(id);
 }
Exemplo n.º 2
0
 public void Hide()
 {
     this.m_Animator.SetBool(this.m_MapHash, false);
     HUDMap.Get().Deactivate();
     if (this.m_CursorVisible)
     {
         CursorManager.Get().ShowCursor(false, false);
         this.m_CursorVisible = false;
     }
 }
Exemplo n.º 3
0
 protected override void OnDisable()
 {
     base.OnDisable();
     this.DestroyMapObject();
     MenuNotepad.Get().SetActiveTab(this.m_PrevNotepadTab, false);
     this.m_Animator.SetBool(this.m_MapHash, false);
     HUDMap.Get().Deactivate();
     CursorManager.Get().ShowCursor(false);
     if (MenuNotepad.Get() != null)
     {
         MenuNotepad.Get().gameObject.SetActive(false);
     }
     this.m_Player.UnblockRotation();
     this.m_Player.UnblockMoves();
     Player.Get().OnHideMap();
 }
Exemplo n.º 4
0
 protected override void OnDisable()
 {
     base.OnDisable();
     this.DestroyMapObject();
     MenuNotepad.Get().SetActiveTab(this.m_PrevNotepadTab, false);
     this.m_Animator.SetBool(this.m_MapHash, false);
     HUDMap.Get().Deactivate();
     if (this.m_CursorVisible)
     {
         CursorManager.Get().ShowCursor(false, false);
         this.m_CursorVisible = false;
     }
     this.m_Animator.SetBool(this.m_ZoomHash, false);
     if (MenuNotepad.Get() != null)
     {
         MenuNotepad.Get().gameObject.SetActive(false);
     }
     Player.Get().OnHideMap();
 }
Exemplo n.º 5
0
 public override void OnAnimEvent(AnimEventID id)
 {
     if (id == AnimEventID.ShowMap)
     {
         this.m_Map.gameObject.SetActive(true);
     }
     else if (id == AnimEventID.ShowMapEnd)
     {
         this.m_CanDisable = true;
         CursorManager.Get().ShowCursor(true);
         HUDMap.Get().Activate();
     }
     else if (id == AnimEventID.HideMapEnd)
     {
         this.Stop();
     }
     else
     {
         base.OnAnimEvent(id);
     }
 }
Exemplo n.º 6
0
    // Update is called once per frame
    void Update()
    {
        RenderSettingsSetter rss;

        rotateCamera(rotateAmount);

        if (!gotParent && (Time.time > 1.0))
        {
            GameObject photoParent = GameObject.Find("Photos");
            findPaths(photoParent);

            gotParent = true;
        }

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            Debug.Log("Quitting");
            Application.Quit();
                        #if UNITY_EDITOR
            UnityEditor.EditorApplication.isPlaying = false;
                        #endif
        }

        if (Input.GetKey("o"))
        {
            if (!mAmnesiaMode)
            {
                useAmnesiaMode();
            }
        }
        else if (Input.GetKey("p"))
        {
            if (mAmnesiaMode)
            {
                useBrowserMode();
            }
        }

        if (Input.GetKey("z"))
        {
            setCameraRotateAmount(-1.0f);
        }
        else if (Input.GetKey("c"))
        {
            setCameraRotateAmount(1.0f);
        }
        else if (Input.GetKey("x"))
        {
            setCameraRotateAmount(0.0f);
        }


        if (Input.GetKeyDown("1"))
        {
            togglePathActive(0);
        }
        else if (Input.GetKeyDown("2"))
        {
            togglePathActive(1);
        }
        else if (Input.GetKeyDown("3"))
        {
            togglePathActive(2);
        }
        else if (Input.GetKeyDown("4"))
        {
            togglePathActive(3);
        }
        else if (Input.GetKeyDown("5"))
        {
            togglePathActive(4);
        }
        else if (Input.GetKeyDown("6"))
        {
            togglePathActive(5);
        }
        else if (Input.GetKeyDown("m"))
        {
            HUDMap map = GameObject.Find("BaseScripts").GetComponent <HUDMap> ();
            map.enabled = !map.enabled;
        }
        else if (Input.GetKeyDown("r"))
        {
            resetCamera();
        }
    }
Exemplo n.º 7
0
 public void Hide()
 {
     this.m_Animator.SetBool(this.m_MapHash, false);
     HUDMap.Get().Deactivate();
     CursorManager.Get().ShowCursor(false);
 }