Felix Boucher 0aa3327433 appliquer global config aux différents endroits
PROBLÈME :

la config existait mais n'était pas appliquée nulle part

SOLUTION :

maintenant elle l'est

NOTES :

Elle n'est pas encore appliquée au flash de dégat
2023-08-05 15:55:54 -04:00

36 lines
525 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Ally : Entity
{
public override void Start()
{
base.Start();
}
void Update()
{
if(IsEnemyDetected) {
AttackEnemy();
}
}
void AttackEnemy()
{
//Attack Cooldown
if (AttackSpeed < AttackSpeedWait)
{
Animation.PlayAttackAnim();
AttackSpeedWait = 0f;
}
AttackSpeedWait += Time.deltaTime;
}
}