Exemplo n.º 1
0
    void Start()
    {
        mState = STATE.SINTRO;
        rCam   = FindObjectOfType <CAM_TrophyRoom>();
        mTime  = Time.time;

        // ------------------------------
        // mAchievs = new DATA_Gamer();
        // mAchievs.mPPHighScores = new MinigameAchievement();
        // mAchievs.mRPHighScores = new MinigameAchievement();
        // mAchievs.mPPHighScores.mEasyScore = 2800;
        // mAchievs.mPPHighScores.mNormalScore = 2800;
        // mAchievs.mPPHighScores.mHardScore = 1200;
        // mAchievs.mPPHighScores.mPetermanScore = 250;

        // IO_GamerInfo.FWriteGamerData(mAchievs);
        IO_GamerInfo.FLoadGamerData();

        mEasy = IO_PP_Dif.FLoadDifficulty("EASY");
        mNorm = IO_PP_Dif.FLoadDifficulty("NORMAL");
        mHard = IO_PP_Dif.FLoadDifficulty("HARD");
        mPete = IO_PP_Dif.FLoadDifficulty("PETERMAN");

        // ---------------------------- SETUP easy trophies to start.
        SpawnTrophiesForDifficulty(IO_GamerInfo.mInfo.mPPHighScores.mEasyScore, mEasy, mDisplayers[0].mClusters[0]);
        SpawnTrophiesForDifficulty(IO_GamerInfo.mInfo.mPPHighScores.mNormalScore, mNorm, mDisplayers[0].mClusters[1]);
        SpawnTrophiesForDifficulty(IO_GamerInfo.mInfo.mPPHighScores.mHardScore, mHard, mDisplayers[0].mClusters[2]);
        SpawnTrophiesForDifficulty(IO_GamerInfo.mInfo.mPPHighScores.mPetermanScore, mPete, mDisplayers[0].mClusters[3]);
    }
Exemplo n.º 2
0
    private void Start()
    {
        TDC_EventManager.FAddHandler(TDC_GE.GE_PP_SackBallHit, E_SackBallHitPlayer);
        TDC_EventManager.FAddHandler(TDC_GE.GE_QB_ReleaseBall, E_BallThrown);
        TDC_EventManager.FAddHandler(TDC_GE.GE_BallHitGround, E_BallHitGround);
        TDC_EventManager.FAddHandler(TDC_GE.GE_InPocket, E_StepIntoPocket);
        TDC_EventManager.FAddHandler(TDC_GE.GE_OutPocket, E_StepOutOfPocket);
        TDC_EventManager.FAddHandler(TDC_GE.GE_PP_TargetHit, E_TargetHit);

        cTurMan   = GetComponent <PP_Man_Tur>();
        cTargMan  = GetComponent <PP_Man_Targ>();
        cArrMan   = GetComponent <PP_Man_Arr>();
        cTrophMan = GetComponent <PP_Man_Trophy>();
        cAud      = GetComponent <AD_PP>();

        refPC = FindObjectOfType <PC_Controller>();

        ENTER_INSTRUCTIONS();

        // ------------------------------
        if (mSaveCurrent)
        {
            lDifData = IO_PP_Dif.FGetCurrent(lDifData.mName);
            IO_PP_Dif.FSaveCurrent(lDifData);
        }
        lDifData = IO_PP_Dif.FLoadDifficulty(IO_PP_Dif.mDif);
        SetUpDifficulty();
    }