Ejemplo n.º 1
0
        public void AddPhysicalObjectToStage(PhysicalObject Object, Vector2 Location)
        {
            if (!MainStage.Children.Contains(Object.ObjectImage) && PhysicalObjects.Contains(Object))
            {
                MainStage.Children.Add(Object.ObjectImage);

                if (Object.ColliderHandler != null)
                {
                    MainStage.Children.Add(Object.ColliderHandler.BoxCollider);
                    ManagerCollision.AddCollider(Object.ColliderHandler);
                }

                SetLocation(Object, Location.X, Location.Y);
            }
        }