private void Awake() { createRot = GetComponent <CreateRotation>(); createMove = GetComponent <CreateMove>(); createTarget = GetComponent <CreateTarget>(); createRot.speed = rotationSpeed; createMove.speed = moveSpeed; }
public async Task <IActionResult> CreateRotation([FromBody] CreateRotation command) { await _commandDispatcher.DispatchAsync(command); return(Ok($"Created rotation with UserId : {command.UserId}")); }