Example #1
0
    void Update()
    {
        //プレー時間更新
        PlayTimeManager.TimeUpdate();

        //クリックの処理
        sceneController.WaitClick();
        //これはフラグを見てGUIを出したり消したりする処理
        sceneController.SetComponents();
    }
Example #2
0
    void Update()
    {
        //プレー時間更新
        PlayTimeManager.TimeUpdate();

        //キャンセルボタンが押されたらステータス画面へ戻る
        if (Input.GetButtonDown("Cancel"))
        {
            if (currentWindow.name == "BuyWindow")
            {
                foreach (var item in windowLists)
                {
                    if (item.name == "MenuWindow")
                    {
                        //詳細ウィンドウ消す
                        detailWindow.SetActive(false);

                        Debug.Log("window active" + item.name);
                        item.SetActive(true);
                        currentWindow = item;
                        EventSystem.current.SetSelectedGameObject(null);
                        // ウインドウのMenuAreaの最初の子要素をアクティブな状態にする
                        EventSystem.current.SetSelectedGameObject(currentWindow.transform.Find("BuyButton").gameObject);
                    }
                    else
                    {
                        item.SetActive(false);
                    }
                }
            }
            else if (currentWindow.name == "ConfirmWindow")
            {
                //購入確認ウィンドウの時
                CloseConfirmWindow();
            }
            else
            {
                //WeaponWindow表示中以外に戻るボタンを押したらStatus画面へ
                ReturnToStatus();
            }
        }
    }
Example #3
0
 void Start()
 {
     arOrigin  = FindObjectOfType <ARSessionOrigin>();
     raycaster = arOrigin.GetComponent <ARRaycastManager>();
     manager   = gameObject.GetComponent <PlayTimeManager>();
 }