Exemple #1
0
        protected virtual bool IsHandState(HAND_STATE state, float axisThreshold)
        {
            if (!IsAnimatorParameter(_parameterState) || !IsAnimatorParameter(_parameterPressValue))
            {
                return(false);
            }

            return(gameObject.activeSelf && (_animator.GetInteger(_parameterState) == (int)state) && (_animator.GetFloat(_parameterPressValue) > axisThreshold));
        }
Exemple #2
0
    void Start()
    {
        _HandState =
            ( HAND_STATE ) PlayerPrefs.GetInt(
                HAND_HANDLE, 2
                );

        _KeyboardState =
            ( KEYBOARD_STATE ) PlayerPrefs.GetInt(
                KEYBOARD_HANDLE, 2
                );

        _highscore = PlayerPrefs.GetInt(
            HIGHSCORE_HANDLE, 0
            );

        HighScores = new List<ScoreInformation>();

        if( FacebookSelfie == null )
        {
            FacebookSelfie = ( Texture ) Instantiate( Resources.Load( "DEFAULT_PROFILE_PIC" ) );
            FacebookName = "Ranger \"Glen\"";

            // enable when publishing to fb
            FacebookIsInitialized = false;
            FB.Init(OnInitComplete, OnHideUnity);
        }
    }