コード例 #1
0
    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;
        }
    }
コード例 #2
0
 protected virtual void Awake()
 {
     instant   = this;
     sceneName = SceneManagerExtension.GetSceneArguments() ["name"].ToString();
     type      = SceneManagerExtension.GetSceneArguments() ["type"].ToString();
     data      = SceneManagerExtension.GetSceneArguments() ["data"] as XElement;
 }
コード例 #3
0
 void Awake()
 {
     instant       = this;
     subtitle      = GetComponent <Subtitle> ();
     prevSceneName = SceneManagerExtension.GetSceneArguments() ["name"].ToString();
     data          = SceneManagerExtension.GetSceneArguments() ["data"] as XElement;
 }
コード例 #4
0
 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;
 }
コード例 #5
0
 // Use this for initialization
 void Awake()
 {
     instant = this;
 }