private void Update() { if (_gameLoadingPannel == null && IsInitializing) { _gameLoadingPannel = Pannel.Show("gameLoading"); } if (!IsInitializing && _gameLoadingPannel != null) { _gameLoadingPannel.Close(); _gameLoadingPannel = null; } if (Input.GetKeyDown(KeyCode.F1)) { if (_debugPannel == null) { _debugPannel = Pannel.Show("DebugPannel"); } else { _debugPannel.Close(); } } }
protected override void Init() { Inventory = GetEntityBehaviour <InventoryBehaviour>(); Inventory.InventorySize = 20; _playerInteractionPannel = Pannel.Show("PlayerInteractionPannel").GetComponent <PlayerInteractionPannel>(); Entity.HasUpdation = true; }