예제 #1
0
 public void Hide()
 {
     UserInterfaceAudio.OnHideDialog();
     dialogLayout.gameObject.SetActive(false);
     //GameObject.Find("Player").GetComponent<Rigidbody2D>().constraints = RigidbodyConstraints2D.None | RigidbodyConstraints2D.FreezeRotation;
     //Debug.Log("hide");
 }
예제 #2
0
 public void Click()
 {
     if (onClickEvent != null)
     {
         onClickEvent();
     }
     textMeshPro.color = Color.white;
     UserInterfaceAudio.OnButtonClick();
 }
예제 #3
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;
        }
 void Awake()
 {
     audioSource = GetComponent <AudioSource>();
     if (instance != null)
     {
         Destroy(instance);
     }
     else
     {
         instance = this;
     }
 }
예제 #5
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;
        }
예제 #6
0
 public void Hide()
 {
     UserInterfaceAudio.OnHideDialog();
     dialogLayout.gameObject.SetActive(false);
 }
예제 #7
0
 public void Exit()
 {
     textMeshPro.color = Color.white;
     UserInterfaceAudio.OnButtonExit();
 }
예제 #8
0
 public void Enter()
 {
     textMeshPro.color = Color.yellow;
     UserInterfaceAudio.OnButtonEnter();
 }