Exemplo n.º 1
0
 protected override void Awake()
 {
     baseStats     = GetComponent <BaseStats>();
     effects       = GetComponent <CombatEffects>();
     effects       = GetComponent <CombatEffects>();
     playerEffects = GameObject.FindGameObjectWithTag("Player").GetComponent <CombatEffects>();
 }
Exemplo n.º 2
0
        public virtual void DebuffTarget(string ID)
        {
            if (targetHealth == null)
            {
                return;
            }

            CombatEffects enemyEffects = targetHealth.GetComponent <CombatEffects>();

            enemyEffects.BuffSelf(ID);
        }
Exemplo n.º 3
0
 private void Start()
 {
     if (gameObject.tag == "Follower")
     {
         selfMana = GetComponent <Mana>();
         GameObject player = GameObject.FindGameObjectWithTag("Player");
         if (player != null)
         {
             playerEffects = player.GetComponent <CombatEffects>();
         }
     }
 }
        public override void DebuffTarget(string ID)
        {
            if (targetHealth == null)
            {
                return;
            }

            CombatEffects enemyEffects = targetHealth.GetComponent <CombatEffects>();

            enemyEffects.BuffSelf(ID);
            debuffTarget.Invoke(ID);
        }
Exemplo n.º 5
0
 protected virtual void Awake()
 {
     baseStats = GetComponent <BaseStats>();
     effects   = GetComponent <CombatEffects>();
 }