Math3D.Init C# (CSharp) Method

Init() public static method

public static Init ( ) : void
return void
    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;
    }