53 lines
1.0 KiB
C#
53 lines
1.0 KiB
C#
|
using UnityEngine;
|
|||
|
using UnityEngine.UI;
|
|||
|
using System.Collections;
|
|||
|
using Games.Item;
|
|||
|
using System.Collections.Generic;
|
|||
|
using GCGame.Table;
|
|||
|
using Games.GlobeDefine;
|
|||
|
|
|||
|
public class JumpGuideLogic : UIControllerBase<JumpGuideLogic>
|
|||
|
{
|
|||
|
#region static
|
|||
|
|
|||
|
public static void ShowJumpGuide(Vector3 endPos)
|
|||
|
{
|
|||
|
UIManager.ShowUI(UIInfo.JumpGuideRoot, ShowJumpGuideInner, endPos);
|
|||
|
}
|
|||
|
|
|||
|
public static void ShowJumpGuideInner(bool sucess, object param)
|
|||
|
{
|
|||
|
JumpGuideLogic.Instance()._EndPos = (Vector3)param;
|
|||
|
}
|
|||
|
|
|||
|
public static void HideJumpGuide()
|
|||
|
{
|
|||
|
if (JumpGuideLogic.Instance())
|
|||
|
{
|
|||
|
UIManager.CloseUI(UIInfo.JumpGuideRoot);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region
|
|||
|
|
|||
|
public void OnEnable()
|
|||
|
{
|
|||
|
SetInstance(this);
|
|||
|
}
|
|||
|
|
|||
|
public void OnDisable()
|
|||
|
{
|
|||
|
SetInstance(null);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
public Vector3 _EndPos;
|
|||
|
|
|||
|
public void OnBtnJump()
|
|||
|
{
|
|||
|
Singleton<ObjManager>.GetInstance().MainPlayer.MainPlayMoveToPos(_EndPos);
|
|||
|
}
|
|||
|
}
|