コード例 #1
0
        public void Show(Vector3 position, string text, string buttonA, string buttonB)
        {
            UserInterfaceAudio.OnShowDialog();
            var d = dialogLayout;

            d.gameObject.SetActive(true);
            d.SetText(text, buttonA, buttonB);
            SetPosition(position);
            model.input.ChangeState(InputController.State.DialogControl);
            buttonCount    = 2;
            selectedButton = -1;
        }
コード例 #2
0
        public void Show(Vector3 position, string text, string buttonA, string buttonB, string buttonC)
        {
            Debug.Log("chat C");
            UserInterfaceAudio.OnShowDialog();
            //GameObject.Find("Player").GetComponent<Rigidbody2D>().constraints = RigidbodyConstraints2D.FreezeAll;
            var d = dialogLayout;

            d.gameObject.SetActive(true);
            d.SetText(text, buttonA, buttonB, buttonC);
            SetPosition(position);
            model.input.ChangeState(InputController.State.DialogControl);
            buttonCount    = 3;
            selectedButton = -1;
        }