Esempio n. 1
0
 private void Start()
 {
     enemyCounter = FindObjectOfType <EnemyCounter>();
     enemyStatus  = EnemyStatus.Nothing;
     elementBag   = FindObjectOfType <ElementBag>();
     healthBar.SetMaxHealth(enemyHealth);
     textMesh.text = "";
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 private void Awake()
 {
     playerMagicCombo = FindObjectOfType <ElementBag>();
 }
Esempio n. 4
0
 private void Awake()
 {
     elementBag = FindObjectOfType<ElementBag>();
 }