private void stageFive() { //start to remove spine layer and center model container.moveSmooth(new Vector3(container.getXPos() - 1.2f, container.getYPos(), container.getZPos()), timeS5); container.zoomSmooth(1.5f, timeS5); }
private void stageOne() { //rotate and move the spine to a suitable location model.rotateSmooth(Vector3.down, 135f, timeS1); model.moveSmooth(new Vector3(-0.6f, 0, 0), timeS1); model.zoomSmooth(2f, timeS1); //roate and move the needle syringe.rotateSmooth(Vector3.forward, 240f, timeS1); syringe.moveSmooth(new Vector3(0.5f, -0.5f, 0.15f), timeS1); }
public void explode() { if (exploding) { return; } for (int i = -2; i < 3; i++) { GameObject a = layers[i + 2].layer; ObjectManipulator om = a.GetComponent <ObjectManipulator>(); if (exploded) { om.moveSmooth(new Vector3(0, 0, 0), explodeTime); } else { om.moveSmooth(new Vector3(i * 200f, 0, 0), explodeTime); } } exploded = !exploded; }
public void changeMode() { mode++; Debug.Log("On mode: " + mode); switch (mode) { case 0: modelAxisRotation = true; break; case 1: InputManager.Instance.PopModalInputHandler(); transform.localRotation = Quaternion.Euler(new Vector3(1, 0, 0) * 270); navigationEnabled = false; break; case 2: break; case 3: InputManager.Instance.PopModalInputHandler(); transform.position = tmp; navigationEnabled = true; modelAxisRotation = false; break; case 4: movable = false; InputManager.Instance.PopModalInputHandler(); transform.localRotation = Quaternion.Euler(new Vector3(transform.localRotation.eulerAngles.x, 334, 0)); needle.moveSmooth(new Vector3(needle.getXPos(), 0, needle.getZPos()), 5); break; } }
private void stageSix() { //show needle move towards spine modelManipulator.fadeIndividualLayer("Spine", 0f, timeS6 * 0.8f); needle.moveSmooth(new Vector3(needle.getXPos(), 2.2f, needle.getZPos()), timeS6); }