public void ReplaceSceneController() { // Debug.Log (type); // if (string.IsNullOrEmpty (type)) // return; ScanSceneController scene = null; // if (type == "map") // scene = gameObject.AddComponent<MapScanScene> (); // else scene = gameObject.AddComponent <ScanSceneController> (); if (scene != null) { scene.videoPanel = videoPanel; scene.title = title; scene.description = description; scene.infoPanel = infoPanel; scene.planePrefab = planePrefab; scene.infoTitle = infoTitle; scene.infoTip1 = infoTip1; scene.infoTip2 = infoTip2; scene.infoTip3 = infoTip3; scene.ARCamera = ARCamera; } }
protected virtual void Awake() { instant = this; sceneName = SceneManagerExtension.GetSceneArguments() ["name"].ToString(); type = SceneManagerExtension.GetSceneArguments() ["type"].ToString(); data = SceneManagerExtension.GetSceneArguments() ["data"] as XElement; }
void Awake() { instant = this; subtitle = GetComponent <Subtitle> (); prevSceneName = SceneManagerExtension.GetSceneArguments() ["name"].ToString(); data = SceneManagerExtension.GetSceneArguments() ["data"] as XElement; }
protected virtual void Awake() { instant = this; topRightButton = gameObject.GetChildByNameInChildren("btnTopRight"); sceneName = SceneManagerExtension.GetSceneArguments() ["name"].ToString(); type = SceneManagerExtension.GetSceneArguments() ["type"].ToString(); data = SceneManagerExtension.GetSceneArguments() ["data"] as XElement; }
// Use this for initialization void Awake() { instant = this; }