예제 #1
0
 private void Start()
 {
     _controls = new Controls();
     _controls.Player.Cancel.performed += OnCancelPerformed;
     _controls.Enable();
     OnCreateWindow(new CreateWindowEA(_mainMenuWindow));
 }
예제 #2
0
 protected override void Awake()
 {
     _controls        = new Management.Controls();
     _appearingEffect = GetComponent <IAppearingEffect>();
     _appearingEffect.AppearingFinished    += OnAppearingFinished;
     _appearingEffect.DisappearingFinished += OnDisappearingFinished;
     _controls.Player.Inventory.performed  += CloseWindow;
     _controls.Enable();
     Load();
 }