public override void Open(object data) { _machineData = data as MachineData; this.Init(); PanelManager.Open(this.gameObject); this.SetCurPacinkoState(_machineData.Data.StateType); }
private void SetBtnEvent() { this.BtnEnter.onClick.Clear(); EventDelegate.Add(this.BtnEnter.onClick, () => { var data = new MachineData() { Pachinko = _pachinko, Data = _data }; _pachinko.Enter(data); }); }