Пример #1
0
    public BlackOverlay GetOverlay()
    {
        if(Overlay == null) {
            Overlay = GetComponentInChildren<BlackOverlay>();
        }

        return Overlay;
    }
Пример #2
0
    void Awake()
    {
        sharedInstance = this;

        if (sharedInstance.hideOnStart)
        {
            Hide();
        }
    }
Пример #3
0
 void Awake()
 {
     if (!instance)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Пример #4
0
    private void RearrangeOverlay()
    {
        View activeView = this.GetActiveView();

        if (activeView == null || activeView.IsRootScreen())
        {
            BlackOverlay.Hide();
        }
        else
        {
            BlackOverlay.Show(activeView.transform);
        }
    }
Пример #5
0
    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);
        }
    }
Пример #6
0
    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;
    }
Пример #7
0
	// Use this for initialization
	void Start () {
        Overlay = GetComponentInChildren<BlackOverlay>();
	}
Пример #8
0
 public override void OnShowCompleted()
 {
     base.OnShowCompleted();
     BlackOverlay.Hide(); //hide overlay so user can get a better look at the camera setting.
 }
Пример #9
0
 private void Start()
 {
     _stun_effect = FindObjectOfType <BlackOverlay>();
 }