public virtual void AssignCustomVariables(bool callOnContainedElements)
 {
     if (callOnContainedElements)
     {
         PongBallInstance.AssignCustomVariables(true);
         Border1Instance.AssignCustomVariables(true);
         Border2Instance.AssignCustomVariables(true);
         Border3Instance.AssignCustomVariables(true);
         Player1Instance.AssignCustomVariables(true);
         Player2Instance.AssignCustomVariables(true);
         HUDInstance.AssignCustomVariables(true);
         HUD2Instance.AssignCustomVariables(true);
     }
     if (PongBallInstance.Parent == null)
     {
         PongBallInstance.X = 0f;
     }
     else
     {
         PongBallInstance.RelativeX = 0f;
     }
     if (PongBallInstance.Parent == null)
     {
         PongBallInstance.Y = 0f;
     }
     else
     {
         PongBallInstance.RelativeY = 0f;
     }
     if (PongBallInstance.Parent == null)
     {
         PongBallInstance.Z = 0f;
     }
     else
     {
         PongBallInstance.RelativeZ = 0f;
     }
     if (Border1Instance.Parent == null)
     {
         Border1Instance.X = -250f;
     }
     else
     {
         Border1Instance.RelativeX = -250f;
     }
     if (Border1Instance.Parent == null)
     {
         Border1Instance.Y = 0f;
     }
     else
     {
         Border1Instance.RelativeY = 0f;
     }
     if (Border2Instance.Parent == null)
     {
         Border2Instance.Y = 125f;
     }
     else
     {
         Border2Instance.RelativeY = 125f;
     }
     if (Border3Instance.Parent == null)
     {
         Border3Instance.Y = -125f;
     }
     else
     {
         Border3Instance.RelativeY = -125f;
     }
     if (Player1Instance.Parent == null)
     {
         Player1Instance.X = 110f;
     }
     else
     {
         Player1Instance.RelativeX = 110f;
     }
     if (Player2Instance.Parent == null)
     {
         Player2Instance.X = -110f;
     }
     else
     {
         Player2Instance.RelativeX = -110f;
     }
     if (HUDInstance.Parent == null)
     {
         HUDInstance.X = 40f;
     }
     else
     {
         HUDInstance.RelativeX = 40f;
     }
     if (HUDInstance.Parent == null)
     {
         HUDInstance.Y = 80f;
     }
     else
     {
         HUDInstance.RelativeY = 80f;
     }
     if (HUD2Instance.Parent == null)
     {
         HUD2Instance.X = -90f;
     }
     else
     {
         HUD2Instance.RelativeX = -90f;
     }
     if (HUD2Instance.Parent == null)
     {
         HUD2Instance.Y = 80f;
     }
     else
     {
         HUD2Instance.RelativeY = 80f;
     }
 }