public void Update(EnemyUnit unit, PlayManager environment) { if (bitingTime > unit.biteRate) { bitingTime = 0; unit.Bite(); //Instantiate(_bulletPrefab, transform.position, transform.rotation); } else { bitingTime += Time.deltaTime; } return; }
public void Update(EnemyUnit unit, PlayManager environment) { if (bitingTime > unit.biteRate) { bitingTime = 0; unit.Bite(); //Instantiate(_bulletPrefab, transform.position, transform.rotation); } else { bitingTime += Time.deltaTime; } return; }