Beispiel #1
0
	private void loaded(LevelLoader obj){
		//obj.DontDelete = true;
		/*foreach(EmptyObjectIdentifier eoi in obj.rootObject.GetAllComponentsInChildren<EmptyObjectIdentifier>()){
			GameObject.Destroy(eoi);
		}*/
		GameObject go = (GameObject)GameObject.Instantiate (obj.rootObject);
		//obj.rootObject.SetActive (false);
		TreeRoot = go.GetComponent<BehaviourNode> ();
		TreeRoot.Tree = this;
		TreeRoot.ReCaptureChildsAndParents ();
	}