예제 #1
0
 /// <summary>
 /// 显示敌我目标tips
 /// </summary>
 /// <param name="Info">目标数据</param>
 /// <param name="tipRect">弹出tips的控件对象</param>
 /// <param name="align">对其方式</param>
 /// <param name="isTouchDestroy">是否触碰销毁</param>
 /// <returns></returns>
 public static void ShowTargetTips(TargetHeroInfo Info, RectTransform tipRect, TipAlignment align, Vector2 offset, bool isTouchDestroy)
 {
     WndManager.DestoryWnd <TargetInfoWnd>();
     WndManager.CreateWnd <TargetInfoWnd>(WndType.DialogWnd, false, false, (wnd) => {
         (wnd as TargetInfoWnd).SetData(new object[] { 0, Info, tipRect, align, offset, isTouchDestroy });
     });
 }
예제 #2
0
 /// <summary>
 /// 显示敌我目标tips
 /// </summary>
 /// <param name="Info">目标数据</param>
 /// <param name="ScreenPos">屏幕位置</param>
 /// <param name="align">对其方式</param>
 /// <param name="TargetSize">触碰3D对象的在屏幕中的大小</param>
 /// <param name="isTouchDestroy">是否触碰销毁</param>
 /// <returns></returns>
 public static void ShowTargetTips(TargetHeroInfo Info, Vector2 ScreenPos, TipAlignment align, Vector2 TargetSize, bool isTouchDestroy)
 {
     WndManager.CreateWnd <TargetInfoWnd>(WndType.DialogWnd, false, false, (wnd) => {
         (wnd as TargetInfoWnd).SetData(new object[] { 1, Info, ScreenPos, align, TargetSize, isTouchDestroy });
     });
 }