private void OnShowSuitTipHandler(bool isShow) { if (isShow) { TooltipsManager.GetInstance().ShowEquipSuitTip(roleEquip); } else { TooltipsManager.GetInstance().Hide(); } }
public void DoToolTip(bool show) { if (show && drag.DragItemVO != null) { TooltipsManager.GetInstance().Show(drag.DragItemVO as ItemInfo); } else { TooltipsManager.GetInstance().Hide(); } }
public void GetTooltips() { var manager = new TooltipsManager(); var tooltips = manager.GetTooltips() .GetAwaiter().GetResult(); Assert.NotEmpty(tooltips); foreach (var tooltip in tooltips) { Assert.NotEmpty(tooltip.FieldName); Assert.NotEqual(DbType.Undefined, tooltip.Type); Assert.NotEmpty(tooltip.Items); } }
public TooltipsController(TooltipsManager tooltipsManager) { _tooltipsManager = tooltipsManager; }
private void OnDestroy() { Instance = null; GameModeManager.OnGameModeChanged -= RemoveActiveTooltip; }
private void Awake() { Instance = this; GameModeManager.OnGameModeChanged += RemoveActiveTooltip; }