public void Update() { timeInterval += Time.deltaTime; if (timeInterval > attackSpeed) { Debug.Log("ENEMY ATTACK!"); OnEnemyAttack?.Invoke(); timeInterval = 0; } }
public void CallOnEnemyAttack() { OnEnemyAttack?.Invoke(); }