Example #1
0
    private void addMouth()
    {
        leftMouth  = resourceFactory.Create(this, "LeftMouth").GetComponent <Sprite>();
        rightMouth = resourceFactory.Create(this, "RightMouth").GetComponent <Sprite>();
        leftMouth.visible(false);
        rightMouth.visible(false);

        leftMouth.setWorldPosition(-19f, 25f, -4f);
        rightMouth.setWorldPosition(22.5f, 24f, -4f);
    }
Example #2
0
        public BigMouthAnimator(float startTime, GameObjectFactory<string> resourceFactory)
            : base(0.25f, 0, startTime)
        {
            var mouthLeftGameObject = resourceFactory.Create("SceneFive/MouthLeft");
            mouthLeft = mouthLeftGameObject.GetComponent<Sprite>();
            mouthLeft.setWorldPosition(-29.5f, -56f, -5f);

            var mouthRightGameObject = resourceFactory.Create("SceneFive/MouthRight");
            mouthRight = mouthRightGameObject.GetComponent<Sprite>();
            mouthRight.setWorldPosition(10f, -56f, -5f);
        }
Example #3
0
        public BigMouthAnimator(float startTime, GameObjectFactory <string> resourceFactory) : base(0.25f, 0, startTime)
        {
            var mouthLeftGameObject = resourceFactory.Create("SceneFive/MouthLeft");

            mouthLeft = mouthLeftGameObject.GetComponent <Sprite>();
            mouthLeft.setWorldPosition(-29.5f, -56f, -5f);

            var mouthRightGameObject = resourceFactory.Create("SceneFive/MouthRight");

            mouthRight = mouthRightGameObject.GetComponent <Sprite>();
            mouthRight.setWorldPosition(10f, -56f, -5f);
        }
Example #4
0
    public SpeechBubble(Camera camera, float leftToRightSwitchOverPosition)
    {
        this.camera = camera;
        this.leftToRightSwitchOverPosition = leftToRightSwitchOverPosition;
        speechBubble      = Sprite.create("SceneFour/bubble");
        speechBubbleLeft  = Sprite.create("SceneFour/bubble_1");
        speechBubbleRight = Sprite.create("SceneFour/bubble_2");
        speechBubbleRight.visible(false);

        speechBubble.setWorldPosition(-80f, 60f, -1f);
        speechBubbleLeft.setWorldPosition(-55f, 50f, -5f);
        speechBubbleRight.setWorldPosition(-55f, 50f, -5f);
        speechBubbleRight.transform.Rotate(Vector3.forward * 5);

        input   = new UnityInput();
        dragger = new Dragger(input, speechBubble);
    }
Example #5
0
    public SpeechBubble(Camera camera, float leftToRightSwitchOverPosition)
    {
        this.camera = camera;
        this.leftToRightSwitchOverPosition = leftToRightSwitchOverPosition;
        speechBubble = Sprite.create("SceneFour/bubble");
        speechBubbleLeft = Sprite.create("SceneFour/bubble_1");
        speechBubbleRight = Sprite.create("SceneFour/bubble_2");
        speechBubbleRight.visible(false);

        speechBubble.setWorldPosition(-80f, 60f, -1f);
        speechBubbleLeft.setWorldPosition(-55f, 50f, -5f);
        speechBubbleRight.setWorldPosition(-55f, 50f, -5f);
        speechBubbleRight.transform.Rotate(Vector3.forward * 5);

        input = new UnityInput();
        dragger = new Dragger(input, speechBubble);
    }
Example #6
0
    private void addMouth()
    {
        leftMouth = resourceFactory.Create(this, "LeftMouth").GetComponent<Sprite>();
        rightMouth = resourceFactory.Create(this, "RightMouth").GetComponent<Sprite>();
        leftMouth.visible(false);
        rightMouth.visible(false);

        leftMouth.setWorldPosition(-19f, 25f, -4f);
        rightMouth.setWorldPosition(22.5f, 24f, -4f);
    }