52 lines
889 B
C#
52 lines
889 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using System.Collections;
|
|
using Games.Item;
|
|
using System.Collections.Generic;
|
|
using GCGame.Table;
|
|
using Games.GlobeDefine;
|
|
|
|
public class CommunityLocateInputLogic : UIControllerBase<CommunityLocateInputLogic>
|
|
{
|
|
|
|
|
|
void OnEnable ()
|
|
{
|
|
SetInstance(this);
|
|
}
|
|
|
|
void OnDisable()
|
|
{
|
|
SetInstance(null);
|
|
}
|
|
|
|
public void ShowWindow()
|
|
{
|
|
gameObject.SetActive(true);
|
|
}
|
|
|
|
public void CloseWindow()
|
|
{
|
|
gameObject.SetActive(false);
|
|
}
|
|
|
|
|
|
#region
|
|
|
|
public InputField _LocateInput;
|
|
|
|
|
|
|
|
public void SaveLocate()
|
|
{
|
|
if (GCGame.Utils.IsStrFilter_Chat(_LocateInput.text))
|
|
{
|
|
GUIData.AddNotifyData("#{39025}");
|
|
return;
|
|
}
|
|
CommunityLogic.Instance().SetLocate(_LocateInput.text);
|
|
CloseWindow();
|
|
}
|
|
#endregion
|
|
}
|