Ejemplo n.º 1
0
    public override void Setup(float startTime)
    {
        bigHeadProp.Setup();
        wrapCam = new OffsetCamera(new Vector3(0, 200, -10), 2);

        initialHeadPosition = bigHeadProp.faceLeftObject.transform.position;

        firstLeftHeadScroller = new HeadScroller(bigHeadProp.faceLeftObject, 3.0f);
        firstRightHeadScroller = new HeadScroller(bigHeadProp.faceRightObject, 5.0f);

        var mouthLeftGameObject = resourceFactory.Create("SceneSix/MouthLeft-KeepMeInPlace");
        var mouthLeft = mouthLeftGameObject.GetComponent<Sprite>();
        // This is off compared to the mouth position in SceneSeven.
        // It seems to be because the mouth is a child of the head in this scene.
        // Perhaps due to rounding error in the matrix multiplication.
        mouthLeft.setWorldPosition(-29.5f, -56f, -5f);
        mouthLeftGameObject.transform.parent = bigHeadProp.faceLeft.transform;

        var mouthRightGameObject = resourceFactory.Create("SceneSix/MouthRight-KeepMeInPlace");
        var mouthRight = mouthRightGameObject.GetComponent<Sprite>();
        mouthRight.setWorldPosition(10f, -56f, -5f);
        mouthRightGameObject.transform.parent = bigHeadProp.faceRight.transform;

        bigMouthAnimator = new BigMouthAnimator(startTime, mouthLeft, mouthRight);
    }
Ejemplo n.º 2
0
    public override void Setup(float startTime)
    {
        endScene();         // no interaction required to continue

        bigHeadProp.Setup();

        bigMouthAnimator = new BigMouthAnimator(startTime, resourceFactory);
    }
Ejemplo n.º 3
0
    public override void Setup(float startTime)
    {
        endScene(); // no interaction required to continue

        bigHeadProp.Setup();

        bigMouthAnimator = new BigMouthAnimator(startTime, resourceFactory);
    }
Ejemplo n.º 4
0
	public override void Setup (float startTime) {
		bigHeadProp.Setup();
		wrapCam = new OffsetCamera(new Vector3(0, 200, -10), 2);
		
		initialHeadPosition = bigHeadProp.faceLeftObject.transform.position;
		
		firstLeftHeadScroller = new HeadScroller(bigHeadProp.faceLeftObject, 3.0f);
		firstRightHeadScroller = new HeadScroller(bigHeadProp.faceRightObject, 5.0f);
		
		var mouthLeftGameObject = resourceFactory.Create("SceneSix/MouthLeft-KeepMeInPlace");
		var mouthLeft = mouthLeftGameObject.GetComponent<Sprite>();
		// This is off compared to the mouth position in SceneSeven.
		// It seems to be because the mouth is a child of the head in this scene.
		// Perhaps due to rounding error in the matrix multiplication.
		mouthLeft.setWorldPosition(-29.5f, -56f, -5f);
		mouthLeftGameObject.transform.parent = bigHeadProp.faceLeft.transform;
		
		var mouthRightGameObject = resourceFactory.Create("SceneSix/MouthRight-KeepMeInPlace");
		var mouthRight = mouthRightGameObject.GetComponent<Sprite>();
		mouthRight.setWorldPosition(10f, -56f, -5f);
		mouthRightGameObject.transform.parent = bigHeadProp.faceRight.transform;
		
		bigMouthAnimator = new BigMouthAnimator(startTime, mouthLeft, mouthRight);
	}