public BlackOverlay GetOverlay() { if(Overlay == null) { Overlay = GetComponentInChildren<BlackOverlay>(); } return Overlay; }
void Awake() { sharedInstance = this; if (sharedInstance.hideOnStart) { Hide(); } }
void Awake() { if (!instance) { instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
private void RearrangeOverlay() { View activeView = this.GetActiveView(); if (activeView == null || activeView.IsRootScreen()) { BlackOverlay.Hide(); } else { BlackOverlay.Show(activeView.transform); } }
private void RearrangeOverlay() { View activeView = this.GetActiveView(); if (activeView == null || activeView.IsRootScreen()) { BlackOverlay.Hide(); //EventBroadcaster.Instance.PostEvent(EventNames.ON_MAP_PAN_ENABLED); } else { BlackOverlay.Show(activeView.transform); } }
void Start() { _healthbar = FindObjectOfType <HealthbarSegmented>(); _dungeon_manager = FindObjectOfType <DungeonManager>(); _camera = FindObjectOfType <Camera>(); _inventory = FindObjectOfType <Inventory>().GetComponent <CanvasGroup>(); _equipment = FindObjectOfType <Equipment>().GetComponent <CanvasGroup>(); _fade_effect = FindObjectOfType <BlackOverlay>(); _player_combat = GetComponent <PlayerCombat>(); _player_movement = GetComponent <PlayerMovement>(); _player_inventory = GetComponent <PlayerInventory>(); _animator = GetComponent <Animator>(); _audio_source = GetComponent <AudioSource>(); _health = MaxHealth; }
// Use this for initialization void Start () { Overlay = GetComponentInChildren<BlackOverlay>(); }
public override void OnShowCompleted() { base.OnShowCompleted(); BlackOverlay.Hide(); //hide overlay so user can get a better look at the camera setting. }
private void Start() { _stun_effect = FindObjectOfType <BlackOverlay>(); }