示例#1
0
        ARSceneBehaviour takeOverScene(ARSceneBehaviour previous)
        {
            //Ensure that the previous was initialized
            previous.initialize();


            //takeover the old ARCamera
            mARCamera = previous.mARCamera;
            mARCamera.transform.parent = this.transform;

            //Disable the old scene so nothing of it will get in our way
            previous.gameObject.SetActive(false);
            previous.clearDataSets();

            Destroy(previous.gameObject);
            //Set this to initialized, otheriwse the next takeover would start an initialization on this
            mInitialized = true;
            return this;
        }
示例#2
0
 static public void relocateBehaviour(ARSceneBehaviour newSceneObject)
 {
     mGameObject = newSceneObject;
 }