Beispiel #1
0
	void Start()
	{
		this.ballInteraction = GetComponent<BallInteraction>();
		this.rb = GetComponent<Rigidbody>();
		this.normalMovement = GetComponent<NormalMovement>();
		this.cylinderMovement = GetComponent<CylinderMovement>();
	}
	void Start() 
	{
		this.cylinderMovement = GetComponent<CylinderMovement>();
		this.normalMovement = GetComponent<NormalMovement>();
		this.rigidBody = GetComponent<Rigidbody>();
		this.cam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<CameraController>();

		this.cylinders = GameObject.Find("Cylinders").transform;

		this.eyeObjects = new GameObject[] {
			transform.GetChild(0).FindChild("Left Eye").gameObject,
			transform.GetChild(0).FindChild("Right Eye").gameObject,
			transform.GetChild(0).FindChild("Eye Whites Sprite").gameObject
		};

		GameObject charSprite = transform.GetChild(0).FindChild("Character Sprite").gameObject;
		anim = charSprite.GetComponent<Animator>();

		movementType = MovementType.None;
	}