void Start(){ ui = GameObject.Find ("UI Root").GetComponent<globalUIHandler> (); changePiece = GameObject.Find ("Main Camera").GetComponent<ChangePiece> (); infoTexte[0] = GameObject.Find ("UI Root/UI Components/Infowindow/1_text"); infoTexte[1] = GameObject.Find ("UI Root/UI Components/Infowindow/2_text"); infoTexte[2] = GameObject.Find ("UI Root/UI Components/Infowindow/3_text"); infoTexte[3] = GameObject.Find ("UI Root/UI Components/Infowindow/4_text"); level = GameObject.Find ("UI Root/UI Components/Infowindow/level").GetComponent<UILabel>(); headline = GameObject.Find ("UI Root/UI Components/Infowindow/title").GetComponent<UILabel>(); }
void Start() { indikatorLayer = GameObject.Find ("IndikatorLayer").GetComponent<IndikatorLayer> (); mountainHandler = GameObject.Find ("Map").GetComponent<MountainHandler> (); mainCameraHandler = gameObject.GetComponent<MainCameraHandler> (); allWindParticles = GameObject.Find ("Main Camera/Wind Particle System").GetComponent<AllWindParticles> (); ui = GameObject.Find ("UI Root").GetComponent<globalUIHandler> (); // FIXME Besser wäre: Nochmal händisch auslesen und eintragen for (int n = 0; n<16; n++) for (int i = 0; i<3; i++) { sourcePositions[n,i] = rotationMiddlePositions[i]-(Quaternion.Euler (0,22.5f*n,0) * new Vector3(0f, -2f,12f)); } indikatorSourcePositions = sourcePositions; // Initial: Mittleren Berg auswählen changePieceTo (1); }
void Start() { mountainHandler = GameObject.Find ("Map").GetComponent<MountainHandler> (); mainCameraHandler = Camera.main.GetComponent<MainCameraHandler> (); changePiece = Camera.main.GetComponent<ChangePiece> (); ui = GameObject.Find ("UI Root").GetComponent<globalUIHandler> (); }