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.
41 lines
839 B
41 lines
839 B
3 years ago
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using AX.MessageSystem;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 双击打开战术设置窗口
|
||
|
/// </summary>
|
||
|
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<TacticMessage>().tactic;
|
||
|
|
||
|
MessageDispatcher.SendMessage(sender, "POPUP_TACTICSETTING_WIN", tactic);
|
||
|
}
|
||
|
|
||
|
t1 = t2;
|
||
|
}
|
||
|
}
|