コード例 #1
0
ファイル: MyForm.cs プロジェクト: naaturaz/SM
    // Update is called once per frame
    private void Update()
    {
        //if (_showAInventory != null)
        //{
        //    _showAInventory.Update();
        //}
        if (_showPathToSea != null)
        {
            _showPathToSea.Update();
        }

        if (_miniHelper != null && Input.GetKeyUp(KeyCode.F1))
        {
            ManagerReport.AddInput("KeyCode.F1");
            Program.MouseListener.HelpWindow.Show("");
        }

        if (Input.GetKeyUp(KeyCode.F9))
        {
            if (isShownNow)
            {
                HideCanvas();
            }
            else
            {
                ShowCanvas();
            }

            isShownNow = !isShownNow;
        }
    }
コード例 #2
0
    // Update is called once per frame
    void Update()
    {
        //if (_showAInventory != null)
        //{
        //    _showAInventory.Update();
        //}
        if (_showPathToSea != null)
        {
            _showPathToSea.Update();
        }

        if (_miniHelper != null && Input.GetKeyUp(KeyCode.F1))
        {
            ManagerReport.AddInput("KeyCode.F1");
            Program.MouseListener.HelpWindow.Show("");
        }
    }