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