public void ShowUI() { if (effectFSM != null) { effectFSM.SendEvent("Show"); } positioner.SetPositionImmediately(); SoundEffector.Singleton.Play("HintUI", transform, 0.2f); on = true; }
public void ShowUI(string title, string content) { if (effectFSM != null) { effectFSM.SendEvent("Show"); } if (titleText != null) { titleText.text = title; } if (contentText != null) { contentText.text = content; } positioner.SetPositionImmediately(); SoundEffector.Singleton.Play("HintUI", transform, 0.2f); }