private void MainAI() { Vector2 direction = targetTransform.position - transform.position; objectController.SetVelocityInDirection(direction, speed); }
private void TriggeredAI() { Vector2 direction = targetTransform.position - transform.position; objectController.SetVelocityInDirection(direction, triggeredSpeed); }