using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using AX.MessageSystem;
///
/// 双击打开战术设置窗口
///
public class TacticObjSetting : MonoBehaviour {
private DateTime t1, t2;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
private void OnMouseDown()
{
t2 = DateTime.Now;
if (t2 - t1 < new TimeSpan(0, 0, 0, 0, 400))
{
GameObject sender = transform.parent.gameObject;
MobileCFFSInfo.Tactic tactic = new MobileCFFSInfo.Tactic();
tactic = sender.GetComponent().tactic;
MessageDispatcher.SendMessage(sender, "POPUP_TACTICSETTING_WIN", tactic);
}
t1 = t2;
}
}