Example #1
0
 private void Init(PlayWindow playWindow)
 {
     PlayWindow = playWindow;
     Strategy = new StationaryStrategy();
     MaxSpeed = DEFAULT_MAX_SPEED;
     Position = Vector2.Zero;
 }
Example #2
0
 public void EnteringPlayerCell(Body playerBody)
 {
     _state = VirusCellState.SuckedIn;
     Strategy = new StationaryStrategy();
     Body.CollidesWith = Category.All & ~Category.Cat10 & ~Category.Cat5;
     Body.Mass = 1;
     CreatePlayerJoint(playerBody);
 }