Beispiel #1
0
        public TwitchingScript(DrawableGameObject target, float width, float height)
        {
            Target = target;
            StartPosition = target.WorldPosition;
            _width = width;
            _height = height;

            SlowDownRatio = 24f;
            RatioX = .3f;
            RatioY = .9f;
        }
Beispiel #2
0
 public bool RemoveLevelObject(DrawableGameObject value)
 {
     return CustomLevelObjects.Remove(value);
 }
Beispiel #3
0
 public void AddLevelObject(DrawableGameObject value)
 {
     CustomLevelObjects.Add(value);
 }
        protected override void OnStart(GameState gameState)
        {
            Target = gameState.Player.Nanobots[Random.Next(gameState.Player.Nanobots.Count)];

            base.OnStart(gameState);
        }