Beispiel #1
0
 public virtual void Register()
 {
     _stateService = ServiceProvider.GetService <UIStateService>();
     for (int i = 0; i < ActiveStates.Length; i++)
     {
         _stateService.RegisterState(ActiveStates[i]);
     }
     ServiceProvider.GetService <EventService>().Update.Register(UpdatePanel);
 }
 // Start is called before the first frame update
 private void Awake()
 {
     _uistateservice = ServiceProvider.GetService <UIStateService>();
     GetComponent <Button>().onClick.AddListener(OnClick);
 }