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