/// <summary> /// 球停下来的处理 /// </summary> /// <param name="pos"></param> /// <param name="type"></param> private static void BallStopProc(Vector3 pos, AreaType type) { if (type == AreaType.PuttingGreen) { TipsHelper.ShowTipsMessage("球落在果岭", 1); } else if (type == AreaType.PuttingGreenLine) { TipsHelper.ShowTipsMessage("球落在果岭边缘", 1); } else if (type == AreaType.Fairway) { TipsHelper.ShowTipsMessage("球落在球道上", 1); } else if (type == AreaType.SandBunker) { TipsHelper.ShowTipsMessage("球落在沙坑", 1); } else if (type == AreaType.Rough) { TipsHelper.ShowTipsMessage("球落在长草区", 1); } else if (type == AreaType.OutOfBounds) { TipsHelper.ShowTipsMessage("球落在界外", 1); } TipsHelper.ShowTipsMessage("距离:" + Vector3.Distance(pos, SelfSel.StartPos), 1); }
// Start is called before the first frame update void OnGUI() { if (GUI.Button(new Rect(300, 600, 300, 200), "剧情测试")) { TipsHelper.ShowDialog(dialogID, true); } if (GUI.Button(new Rect(300, 900, 300, 200), "预加载测试")) { PoolManager.PoolsPrepareData(100); } }
public void BtnSkipClick() { if (m_IsHaveOption == true) { return; } if (m_curCofig != null) { TipsHelper.ShowSkipMsgBox(m_curCofig.SkipSummary, DoSkipCall); } else { WndManager.DestoryWnd <AdventureDialogueWnd>(0.5f + waitCloseDialogTime); } }
internal CoreInfoPart(Transform Trans) { Trans_ = Trans.GetComponent <RectTransform>(); HpText_ = UIHelper.GetComponent <Text>(Trans, "Hp"); MpText_ = UIHelper.GetComponent <Text>(Trans, "Mp"); GemText_ = UIHelper.GetComponent <Text>(Trans, "Gem"); var TipsMsg = $"<color=red><size=30>Hp归零游戏结束</size></color>\n" + "<color=green><size=30>Mp用于释放技能</size></color>\n" + "<color=yellow><size=30>Gem是通用货币</size></color>"; TipsHelper.AddTips(Trans, () => TipsMsg); EventManager.Register <CoreInfoChangeEvent>(OnCoreInfoChangeEvent); Refresh(); }
/// <summary> /// 准备战斗 /// </summary> private static void Ready() { TipsHelper.ShowTipsMessage("大神,轮到你了!", 1); SetBattleStatus(BattleStatus.RoundStart); }