Exemplo n.º 1
0
 private void Awake()
 {
     if (Instance != null)
     {
         Debug.LogError("Duplicates of LifebarManager! Disabling duplicate!", this);
         this.enabled = false;
     }
     Instance = this;
 }
Exemplo n.º 2
0
    private void Awake()
    {
        playerHealthBehaviour = GetComponent <PlayerHealthBehaviour>();

        lifebarManager = FindObjectOfType <LifebarManager>();
    }