Esempio n. 1
0
 internal void HideAll()
 {
     if (_currentMessage != null)
     {
         _currentMessage.Close();
         _currentMessage = null;
     }
 }
Esempio n. 2
0
        public void ShowMessage(string title, string message)
        {
            HideAll();

            _spawnManager.SpawnUIElement("MessagePanel", _parent, (obj) =>
            {
                _currentMessage = obj.GetComponent <MessagePanelController>();
                _currentMessage.transform.position += new Vector3(0, 400f);
                _currentMessage.Show(title, message);
            });
        }