private void Awake()
    {
        createRot    = GetComponent <CreateRotation>();
        createMove   = GetComponent <CreateMove>();
        createTarget = GetComponent <CreateTarget>();

        createRot.speed  = rotationSpeed;
        createMove.speed = moveSpeed;
    }
Example #2
0
        public async Task <IActionResult> CreateRotation([FromBody] CreateRotation command)
        {
            await _commandDispatcher.DispatchAsync(command);

            return(Ok($"Created rotation with UserId : {command.UserId}"));
        }