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); }
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); }
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); }
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); }
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); }