Ejemplo n.º 1
0
    public BlackOverlay GetOverlay()
    {
        if(Overlay == null) {
            Overlay = GetComponentInChildren<BlackOverlay>();
        }

        return Overlay;
    }
Ejemplo n.º 2
0
    void Awake()
    {
        sharedInstance = this;

        if (sharedInstance.hideOnStart)
        {
            Hide();
        }
    }
Ejemplo n.º 3
0
 void Awake()
 {
     if (!instance)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Ejemplo n.º 4
0
    private void RearrangeOverlay()
    {
        View activeView = this.GetActiveView();

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