protected override void OnDelayedAttachAsMain(Character target) { this.character = target; Character casterCharacter = caster.GetComponent <SkillComponent>().Character; Direction casterFacingDirection = casterCharacter.FacingDirection(); targetMovementComponent = targetEntity.GetComponent <MovementComponent>(); targetMovementComponent.WallCollisionHandler += OnWallCollision; Direction movementDirection = StaggerModifier.CalculateMovementDirection( casterMovementComponent, targetMovementComponent, collidedProjectilePosition, info.MovementBehavior ); Direction facingDirection = StaggerModifier.CalculateFacingDirection( casterMovementComponent, targetMovementComponent, collidedProjectilePosition, info.FacingBehavior, movementDirection ); targetMovementComponent.MovingDirection = movementDirection.ToNormalizedVector2(); targetMovementComponent.FacingDirection = facingDirection; target.InterruptChannelingSkill(); target.PlayAnimation(animProfile.Upper()); target.JumpToFrame(4); //DLog.LogError("Jump on knockdown"); blastRequest = (BlastRequest)DoBlast(target); stageFromPreviousCheck = blastRequest.ShowStage(); state = State.Peaking; }
/// <summary> /// Create, update, and/or schedule a blast. /// </summary> /// <param name="request">BlastRequest parameters.</param> /// <seealso cref="http://docs.sailthru.com/api/blast"/> /// <returns></returns> public SailthruResponse ScheduleBlast(BlastRequest request) { Hashtable hashForPost = new Hashtable(); hashForPost.Add("json", JsonConvert.SerializeObject(request, Formatting.None, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore })); return(this.ApiPost("blast", hashForPost)); }
public BlastTests() { _blast = new BlastRequest(); }