// Use this for initialization void Start() { rb = GetComponent <Rigidbody2D>(); stopDistance = 3.0f; snapSpeed = 10.0f; //scale with distance? ourMovement = GetComponent <UniversalMovement>(); }
private void Awake() { agent = GetComponent <Agent>(); movementController = GetComponent <UniversalMovement>(); }
void Start() { dashSpeed = 4.0f; movement = GetComponent <UniversalMovement>(); }