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