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.
33 lines
762 B
33 lines
762 B
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
using AX.MessageSystem; |
|
using System; |
|
|
|
/// <summary> |
|
/// 获取战术信息脚本 |
|
/// </summary> |
|
public class GetTacticInfos : MonoBehaviour { |
|
|
|
// Use this for initialization |
|
void Start () { |
|
MessageDispatcher.AddListener("GET_TACTICINFOS", TacticInfosGet); |
|
} |
|
|
|
private void OnDestroy() |
|
{ |
|
MessageDispatcher.RemoveListener("GET_TACTICINFOS", TacticInfosGet); |
|
} |
|
|
|
private void TacticInfosGet(IMessage obj) |
|
{ |
|
List<MobileCFFSInfo.Tactic> tacticInfos = (List<MobileCFFSInfo.Tactic>)obj.Data; |
|
|
|
tacticInfos.Add(transform.GetComponent<TacticMessage>().tactic); |
|
} |
|
|
|
// Update is called once per frame |
|
void Update () { |
|
|
|
} |
|
}
|
|
|