private void Start() { enemyCounter = FindObjectOfType <EnemyCounter>(); enemyStatus = EnemyStatus.Nothing; elementBag = FindObjectOfType <ElementBag>(); healthBar.SetMaxHealth(enemyHealth); textMesh.text = ""; }
private void Awake() { rigidbody = GetComponent <Rigidbody>(); _elementBag = FindObjectOfType <ElementBag>(); gameObject.name = Time.time.ToString(); DamageBookInTheBall = new Dictionary <ElementType, float>(_elementBag.DamageBook); CombinedMagicType = DamageBookInTheBall.First().Key; CombinedMagicDamage = DamageBookInTheBall.First().Value; }
private void Awake() { playerMagicCombo = FindObjectOfType <ElementBag>(); }
private void Awake() { elementBag = FindObjectOfType<ElementBag>(); }