public static void Init()
{
tempChild = (new GameObject("Math3d_TempChild")).transform;
tempParent = (new GameObject("Math3d_TempParent")).transform;
tempChild.gameObject.hideFlags = HideFlags.HideAndDontSave;
MonoBehaviour.DontDestroyOnLoad(tempChild.gameObject);
tempParent.gameObject.hideFlags = HideFlags.HideAndDontSave;
MonoBehaviour.DontDestroyOnLoad(tempParent.gameObject);
//set the parent
tempChild.parent = tempParent;
}