Пример #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;
        }
Пример #2
0
 public bool RemoveLevelObject(DrawableGameObject value)
 {
     return CustomLevelObjects.Remove(value);
 }
Пример #3
0
 public void AddLevelObject(DrawableGameObject value)
 {
     CustomLevelObjects.Add(value);
 }
Пример #4
0
 public void Remove(DrawableGameObject obj)
 {
     Cache.Remove(obj);
 }
Пример #5
0
 public void Add(DrawableGameObject obj)
 {
     Cache.Add(obj);
 }
Пример #6
0
        protected override void OnStart(GameState gameState)
        {
            Target = gameState.Player.Nanobot;

            base.OnStart(gameState);
        }