private void Start() { _controls = new Controls(); _controls.Player.Cancel.performed += OnCancelPerformed; _controls.Enable(); OnCreateWindow(new CreateWindowEA(_mainMenuWindow)); }
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(); }