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