Beispiel #1
0
 public void setupAndPlay()
 {
     animComp.setFPS(animFPS);
     animComp.setRowLimits(rowStart, rowLength);
     animComp.setColLimits(colStart, colLength);
     animComp.setPingPongAnim(pingPong);
     working = true;
     animComp.Play();
 }
    // Update is called once per frame
    void Update()
    {
        if (Input.GetButtonUp("Jump"))
        {
            // Reset camera:
            gameObject.transform.position = _startingCameraPosition;

            // Animate mainCharacter:
            _mainCharacterTexture.Play(0);

            // Zoom Camera up:
            iTween.MoveTo(gameObject, iTween.Hash("z", gameObject.transform.localPosition.z - 2, "time", 1, "easetype", iTween.EaseType.easeInOutSine, "oncomplete", "CameraZoomComplete"));
        }
    }