protected override void Start() { base.Start(); heartAttack = GetComponentInChildren <HeartAttack>(); bossHealthBarManager = BossHealthBarManager.instance; bossHealthBarManager.setReferenceToHeart(this, heartID); }
private void Awake() { DontDestroyOnLoad(this); if (instance != null) { Debug.LogWarning("More than one inventory instance"); Destroy(gameObject); return; } instance = this; }