コード例 #1
0
    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;
        }
    }
コード例 #2
0
 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);
 }
コード例 #3
0
    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);
    }