void Start() { WWW w = new WWW(url); StartCoroutine(WaitForRequest(w)); NaasHomself = (MeshFilter)GameObject.Find("Naas").GetComponent <MeshFilter>(); Speech = (TextMesh)GameObject.Find("DebugTxt").GetComponent <TextMesh> (); SpeechMesh = (MeshRenderer)GameObject.Find("DebugTxt").GetComponent <MeshRenderer> (); SpeechBubble = (MeshFilter)GameObject.Find("speech").GetComponent <MeshFilter> (); SpeechMeshBubble = (MeshRenderer)GameObject.Find("speech").GetComponent <MeshRenderer> (); SpeechMesh.enabled = false; SpeechMeshBubble.enabled = false; Speech.text = ""; camera = (Camera)GameObject.Find("Main Camera").GetComponent <Camera> (); cubescript = (agthoekscript)GameObject.Find("8hoek").GetComponent <agthoekscript>(); startMarker = new Vector3(0.0f, 25.0f, -20.843f); endMarker = new Vector3(-0.5f, 9f, -20.843f); NaasstartMarker = new Vector3(-2.433045f, 0.5729523f, 7.510696f); NaasendMarker = new Vector3(-2.433045f, 0.5729523f, -3.650318f); sides = new Transform[8]; sideV = new string[8]; side1 = (TextMesh)GameObject.Find("side1").GetComponent <TextMesh> (); side2 = (TextMesh)GameObject.Find("side2").GetComponent <TextMesh> (); side3 = (TextMesh)GameObject.Find("side3").GetComponent <TextMesh> (); side4 = (TextMesh)GameObject.Find("side4").GetComponent <TextMesh> (); side5 = (TextMesh)GameObject.Find("side5").GetComponent <TextMesh> (); side6 = (TextMesh)GameObject.Find("side6").GetComponent <TextMesh> (); side7 = (TextMesh)GameObject.Find("side7").GetComponent <TextMesh> (); side8 = (TextMesh)GameObject.Find("side8").GetComponent <TextMesh> (); sides [0] = GameObject.Find("side1").transform; sides [1] = GameObject.Find("side2").transform; sides [2] = GameObject.Find("side3").transform; sides [3] = GameObject.Find("side4").transform; sides [4] = GameObject.Find("side5").transform; sides [5] = GameObject.Find("side6").transform; sides [6] = GameObject.Find("side7").transform; sides [7] = GameObject.Find("side8").transform; side1.alignment = TextAlignment.Center; side2.alignment = TextAlignment.Center; side3.alignment = TextAlignment.Center; side4.alignment = TextAlignment.Center; side5.alignment = TextAlignment.Center; side6.alignment = TextAlignment.Center; side7.alignment = TextAlignment.Center; side8.alignment = TextAlignment.Center; }
void Start() { WWW w = new WWW(url); StartCoroutine(WaitForRequest(w)); NaasHomself = (MeshFilter)GameObject.Find ("Naas").GetComponent<MeshFilter >(); Speech = (TextMesh)GameObject.Find ("DebugTxt").GetComponent<TextMesh> (); SpeechMesh = (MeshRenderer)GameObject.Find ("DebugTxt").GetComponent<MeshRenderer> (); SpeechBubble = (MeshFilter)GameObject.Find ("speech").GetComponent<MeshFilter> (); SpeechMeshBubble = (MeshRenderer)GameObject.Find ("speech").GetComponent<MeshRenderer> (); SpeechMesh.enabled = false; SpeechMeshBubble.enabled = false; Speech.text = ""; camera = (Camera)GameObject.Find ("Main Camera").GetComponent<Camera> (); cubescript = (agthoekscript) GameObject.Find ("8hoek").GetComponent<agthoekscript>(); startMarker = new Vector3 (0.0f,25.0f,-20.843f); endMarker = new Vector3 (-0.5f,9f,-20.843f); NaasstartMarker = new Vector3 (-2.433045f,0.5729523f,7.510696f); NaasendMarker = new Vector3 (-2.433045f,0.5729523f,-3.650318f); sides = new Transform[8]; sideV = new string[8]; side1 = (TextMesh)GameObject.Find ("side1").GetComponent<TextMesh> (); side2 = (TextMesh)GameObject.Find ("side2").GetComponent<TextMesh> (); side3 = (TextMesh)GameObject.Find ("side3").GetComponent<TextMesh> (); side4 = (TextMesh)GameObject.Find ("side4").GetComponent<TextMesh> (); side5 = (TextMesh)GameObject.Find ("side5").GetComponent<TextMesh> (); side6 = (TextMesh)GameObject.Find ("side6").GetComponent<TextMesh> (); side7 = (TextMesh)GameObject.Find ("side7").GetComponent<TextMesh> (); side8 = (TextMesh)GameObject.Find ("side8").GetComponent<TextMesh> (); sides [0] = GameObject.Find ("side1").transform; sides [1] = GameObject.Find ("side2").transform; sides [2] = GameObject.Find ("side3").transform; sides [3] = GameObject.Find ("side4").transform; sides [4] = GameObject.Find ("side5").transform; sides [5] = GameObject.Find ("side6").transform; sides [6] = GameObject.Find ("side7").transform; sides [7] = GameObject.Find ("side8").transform; side1.alignment = TextAlignment.Center; side2.alignment = TextAlignment.Center; side3.alignment = TextAlignment.Center; side4.alignment = TextAlignment.Center; side5.alignment = TextAlignment.Center; side6.alignment = TextAlignment.Center; side7.alignment = TextAlignment.Center; side8.alignment = TextAlignment.Center; }
// Use this for initialization void Start() { cubescript = (agthoekscript) GameObject.Find ("8hoek").GetComponent<agthoekscript>(); }
// Use this for initialization void Start() { cubescript = (agthoekscript)GameObject.Find("8hoek").GetComponent <agthoekscript>(); }