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