Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     delayRemoval = 5f;
     links        = new Dictionary <GameObject, Link>();
     lastRemoval  = -delayRemoval;
     nclParser    = GameObject.FindGameObjectWithTag("GameController").GetComponent <NCLParser>();
     structural   = GameObject.FindGameObjectWithTag("StructuralView").GetComponent <StructuralViewScript>();
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     //ARCamera = GameObject.FindGameObjectWithTag("ARCamera");
     portsList       = new List <GameObject>();
     myMode          = CurrentMode.EDITING;
     nclParser       = GameObject.FindGameObjectWithTag("GameController").GetComponent <NCLParser>();
     linksController = GameObject.FindGameObjectWithTag("LinksController").GetComponent <LinksControllerScript>();
     structural      = GameObject.FindGameObjectWithTag("StructuralView").GetComponent <StructuralViewScript>();
 }
    void Start()
    {
        GameObject myName = Instantiate(MediaNamePrefab, transform, false);

        myName.GetComponent <TextMesh>().text = this.url;
        controller = GameObject.FindGameObjectWithTag("GameController").GetComponent <MediaControllerScript>();
        nclParser  = GameObject.FindGameObjectWithTag("GameController").GetComponent <NCLParser>();
        //SaveToNCL
        nclParser.AddMedia(MediaId, url, volume, rect.x, rect.y, rect.width, rect.height, zIndex);
    }