private void OnCollisionStay(Collision other)
{
go = other.gameObject;
if (!go.CompareTag("Player"))
return;
Attack();
}
private void Attack()
{
if (gameEntity.isEnemyAttack)
{
gameEntity.isEnemyAttack = false;
gameEntity.basicEnemy.Cooldown = cooldown;
}
}