Example #1
0
	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);
	}
Example #2
0
	void Start () {
		mainCameraHandler = gameObject.GetComponent<MainCameraHandler>();
		changePiece = gameObject.GetComponent<ChangePiece>();

		lastInputTime = Time.realtimeSinceStartup;
	}
Example #3
0
 private void OnMouseDown()
 {
     camera = (MainCameraHandler)cameraFollower.GetComponent(typeof(MainCameraHandler));
     camera.startCam();
     count.preshop = false;
 }
Example #4
0
	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> ();
	}