Пример #1
0
        public BoxCollider(GameObject type, int x, int y, int width, int height)
        {
            this.Type = type;
            this.X = x;
            this.Y = y;
            this.Width = width;
            this.Height = height;

            CollisionManager.AddCollider(this);
        }
Пример #2
0
 public static void Destroy(GameObject gameObject)
 {
     deletedGameObjects.Add(gameObject);
 }
Пример #3
0
 public static void AddGameObject(GameObject gameObject)
 {
     gameObjects.Add(gameObject);
 }