public void OnCancelBtnClick() { GlobalMenuManager.Instance.RemoveCache("LTResourceInstanceUI"); mActivityId = 0; mChooseLevel = null; mInstanceType = ResourceInstanceType.Null; }
public override void SetMenuData(object param) { base.SetMenuData(param); if (param != null) { string s = param as string; if (s.Contains("Gold")) { mInstanceType = ResourceInstanceType.Gold; mActivityId = 9001; ExpFx.CustomSetActive(false); GoldFx.CustomSetActive(true); } else if (s.Contains("Exp")) { mInstanceType = ResourceInstanceType.Exp; mActivityId = 9002; GoldFx.CustomSetActive(false); ExpFx.CustomSetActive(true); } else { EB.Debug.LogError("LTResourceInstanceHudController.SetMenuData: type {0} vaild", param); } } }
public bool IsLock(Hotfix_LT.Data.SpecialActivityLevelTemplate level, ResourceInstanceType type) { if (type == ResourceInstanceType.Gold) { return(level.id > mPassDifficeGlod); } else if (type == ResourceInstanceType.Exp) { return(level.id > mPpassDifficeExp); } return(true); }
public bool IsCanBlitz(Hotfix_LT.Data.SpecialActivityLevelTemplate level, ResourceInstanceType type) { if (type == ResourceInstanceType.Gold) { return(level.id <= (mPassDifficeGlod - 1)); } else if (type == ResourceInstanceType.Exp) { return(level.id <= (mPpassDifficeExp - 1)); } return(false); }
public void InitState(Hotfix_LT.Data.SpecialActivityLevelTemplate data, ResourceInstanceType type) { if (data == null) { return; } bool isLock = LTResourceInstanceManager.Instance.IsLock(data, type); ItemSprite.color = isLock ? GreyColor : NormalColor; LockObj.SetActive(isLock); }
public int GetResourceBattleEnterVigor(ResourceInstanceType type) { switch (type) { //金币副本 case ResourceInstanceType.Gold: return((int)GetGameConfigValue("TreasureCost")); //经验副本 case ResourceInstanceType.Exp: return((int)GetGameConfigValue("ExpSpringCost")); } return(0); }