public TwitchingScript(DrawableGameObject target, float width, float height) { Target = target; StartPosition = target.WorldPosition; _width = width; _height = height; SlowDownRatio = 24f; RatioX = .3f; RatioY = .9f; }
public bool RemoveLevelObject(DrawableGameObject value) { return CustomLevelObjects.Remove(value); }
public void AddLevelObject(DrawableGameObject value) { CustomLevelObjects.Add(value); }
public void Remove(DrawableGameObject obj) { Cache.Remove(obj); }
public void Add(DrawableGameObject obj) { Cache.Add(obj); }
protected override void OnStart(GameState gameState) { Target = gameState.Player.Nanobot; base.OnStart(gameState); }