private void SelectButton(GachaCategory type) { this.gachaSelectBehavior.ChangeGachaType(this.select, type); this.buttons[select].interactable = true; this.buttons[type].interactable = false; this.select = type; }
private void Start() { foreach (var kv in this.buttons) { kv.Value.onClick.AddListener(() => this.SelectButton(kv.Key)); } this.buttons[GachaCategory.Normal].interactable = false; this.select = GachaCategory.Normal; }
public GachaRequestParam(string _iname, int _cost, string _confirm_text, GachaCostType _cost_type, GachaCategory _category, bool _use_onemore, bool _no_use_free = false) { this.m_iname = _iname; this.m_cost = _cost; this.m_confirm_text = _confirm_text; this.m_costtype = _cost_type; this.m_category = _category; this.m_use_onemore = _use_onemore; this.m_no_use_free = _no_use_free; }
public GachaRequestParam(string _iname) { this.m_iname = _iname; this.m_cost = 0; this.m_confirm_text = string.Empty; this.m_costtype = GachaCostType.NONE; this.m_category = GachaCategory.NONE; this.m_use_onemore = false; this.m_no_use_free = false; }
public GachaRequestParam(GachaRequestParam _request) { this.m_iname = _request.Iname; this.m_cost = _request.Cost; this.m_free = _request.Free; this.m_ticket = _request.Ticket; this.m_num = _request.Num; this.m_confirm_text = _request.ConfirmText; this.m_use_onemore = _request.IsUseOneMore; this.m_category = _request.Category; }
public GachaRequestParam(string _iname, string _input, int _cost, string _type, int _free, string _ticket, int _num, bool _paid, string _confirm_text, bool _use_onemore, GachaCategory _category) { this.m_iname = _iname; this.m_cost = _cost; this.m_free = _free; this.m_ticket = _ticket; this.m_num = _num; this.m_confirm_text = _confirm_text; this.m_use_onemore = _use_onemore; this.m_category = _category; }
public GachaButtonParam() { this.m_Cost = 0; this.m_StepIndex = 0; this.m_StepMax = 0; this.m_TicketNum = 0; this.m_ExecNum = 0; this.m_ButtonText = string.Empty; this.m_AppealText = string.Empty; this.m_IsShowStepup = true; this.m_IsNoUseFree = false; this.m_CostType = GachaCostType.NONE; this.m_Category = GachaCategory.NONE; }
public GachaButtonParam(int _cost, int _step_index, int _step_max, int _ticket_num, int _exec_num, int _appeal_type, string _button_text, string _appeal_text, bool _is_show_stepup, bool _is_nouse_free, GachaCostType _cost_type, GachaCategory _category) { this.m_Cost = _cost; this.m_StepIndex = _step_index; this.m_StepMax = _step_max; this.m_TicketNum = _ticket_num; this.m_ExecNum = _exec_num; this.m_AppealType = _appeal_type; this.m_ButtonText = _button_text; this.m_AppealText = _appeal_text; this.m_IsShowStepup = _is_show_stepup; this.m_IsNoUseFree = _is_nouse_free; this.m_CostType = _cost_type; this.m_Category = _category; }
public GachaButtonParam(GachaButtonParam _param) { this.m_Cost = _param.Cost; this.m_StepIndex = _param.StepIndex; this.m_StepMax = _param.StepMax; this.m_TicketNum = _param.TicketNum; this.m_ExecNum = _param.ExecNum; this.m_AppealType = _param.AppealType; this.m_ButtonText = _param.ButtonText; this.m_AppealText = _param.AppealText; this.m_IsShowStepup = _param.IsShowStepup; this.m_IsNoUseFree = _param.IsNoUseFree; this.m_CostType = _param.CostType; this.m_Category = _param.Category; }
public void ChangeGachaType(GachaCategory before, GachaCategory after) { this.collector.playerInput.gachaParams[before] = new GachaParameter { rates = this.changeProbabilityBehavior.GetGachaRates(), isCeiling = this.ceilingToggle.isOn }; this.changeProbabilityBehavior.Reload(this.collector.playerInput.gachaParams[after].rates); this.ceilingToggle.isOn = this.collector.playerInput.gachaParams[after].isCeiling; if (after == GachaCategory.Confirm || after == GachaCategory.LuckyBag) { this.changeProbabilityGroup.interactable = false; this.ceilingToggle.interactable = false; } else { this.changeProbabilityGroup.interactable = true; this.ceilingToggle.interactable = true; } }
private bool UpdateCostNumber(int _cost, int _exec_num, GachaCostType _cost_type, GachaCategory _gacha_category, bool _is_nouse_free = false) { Transform child1 = this.costBG.get_transform().FindChild("num"); Transform child2 = this.costBG.get_transform().FindChild("num_free"); if (UnityEngine.Object.op_Equality((UnityEngine.Object)child1, (UnityEngine.Object)null) || UnityEngine.Object.op_Equality((UnityEngine.Object)child2, (UnityEngine.Object)null)) { DebugUtility.LogError("消費コストを表示するオブジェクトが存在しません"); return(false); } ((Component)child1).get_gameObject().SetActive(false); ((Component)child2).get_gameObject().SetActive(false); bool flag = false; switch (_gacha_category) { case GachaCategory.NONE: if (_cost == 0) { flag = true; break; } break; case GachaCategory.DEFAULT_RARE: flag = _exec_num == 1 && _cost_type == GachaCostType.COIN && !_is_nouse_free && this.gm.Player.CheckFreeGachaCoin(); break; default: flag = _exec_num == 1 && this.gm.Player.CheckFreeGachaGold(); break; } ((Component)child2).get_gameObject().SetActive(flag); ((Component)child1).get_gameObject().SetActive(!flag); this.RefreshCostNum(_cost); return(true); }