Esempio n. 1
0
 public void BeginReturning()
 {
     if (state is ThrownBoomerangState)
     {
         state = new HoveringBoomerangState(this);
     }
 }
Esempio n. 2
0
 public BoomerangProjectile(string direction, ICharacter source, int velocity = 5)
     : base(direction, source.X, source.Y, velocity)
 {
     OwningTeam      = source.Team;
     sprite          = ProjectileSpriteFactory.Instance.CreateBoomerang();
     sprite.Position = new Point(X, Y);
     Hitbox          = sprite.Box;
     this.direction  = direction;
     this.velocity   = velocity;
     this.source     = source;
     state           = new PocketBoomerangState(this);
 }