Beispiel #1
0
    public void ZoomIntoThirdPerson()
    {
        stateTime = 0;
        state     = State.ZoomingIntoThirdPerson;
        SaveOriginalPositionsAndRotations();
        Go.to(this, kZoomDuration, new GoTweenConfig().
              floatProp("zoom", 1).
              //setEaseType( GoEaseType.Linear).
              onComplete(t => OnZoomedIntoThirdPerson()));
        mainCamera.ShowHead();

        if (OnPerspectiveChange != null)
        {
            OnPerspectiveChange(PerspectiveEvent.ZoomToThirdPerson);
        }
    }