You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
583 B
21 lines
583 B
4 years ago
|
using UnityEngine;
|
||
|
using AX.MessageSystem;
|
||
|
|
||
|
public class MessagePanelControl : MonoBehaviour {
|
||
|
public void SetMessagePanel(MessageType type, GameObject obj)
|
||
|
{
|
||
|
switch (type)
|
||
|
{
|
||
|
case MessageType.CharacterMessage:
|
||
|
CharacterMessagePanel.Instance.SetUI(obj);
|
||
|
break;
|
||
|
case MessageType.TruckMessage:
|
||
|
TruckMessagePanel.Instance.SetUI(obj);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
MessageDispatcher.SendMessage("HideOtherMessagePanel",type);
|
||
|
}
|
||
|
}
|