Exemple #1
0
    public void restore()
    {
        if (!lookingUp || restoreLookUp.isRestored())
        {
            return;
        }

        // set back state as it was previous to look upwards
        playerFollower.setStateFrom(tempConfig);
        // start the script that will let the camera moves to correct position
        restoreLookUp.init(restoringSpeed);

        lookingUp = false;
    }
    public void restore()
    {
        timing = 0f;

        if (dirSign == 0f || restoreLookDir.isRestored())
        {
            return;
        }

        // set back state as it was previous to look upwards
        playerFollower.setStateFrom(tempConfig);
        // enables the script that will restore the Player Follower's property
        restoreLookDir.restore(restoringSpeed);

        dirSign = 0f;
    }