Beispiel #1
0
    public override void FEnter()
    {
        mState      = STATE.S_PICKING;
        cMan.mState = EX_Man.STATE.S_PLAYING;
        cPick.FEnter();

        cMan.mTxtInstructions.text = "Play the game";
        mUI.gameObject.SetActive(true);

        // Because the game starts with a fourth and 15 instead of a kickoff.
        mGameData.mDown = GameData.DOWN.FIRST;
        // I need a way of representing the ball location.
        // like OPP 40, or HOME 40, or something.
        mGameData.mBallLoc.mYardMark = 20;
        if (mGameData.mReceivedFirst == GameData.POSSESSION.HOME)
        {
            mGameData.mBallLoc.mSide = GameData.POSSESSION.HOME;
            mGameData.mPossession    = GameData.POSSESSION.HOME;
        }
        else
        {
            mGameData.mBallLoc.mSide = GameData.POSSESSION.AWAY;
            mGameData.mPossession    = GameData.POSSESSION.AWAY;
        }
        mGameData.mLastPlayBallLoc = mGameData.mBallLoc;

        mGameData.mDownMark = FCalcNewSpot(mGameData.mBallLoc, mGameData.mPossession, 10);
        cRes.FGFX_PlaceFirstDownMarkers(mGameData.mBallLoc, mGameData.mDownMark);
        // mGameData.mMarkerDown;
        mGameData.mQuarter         = GameData.QUARTER.FIRST;
        mGameData.mTimeStruct.mMin = 15;
        mGameData.mTimeStruct.mSec = 0;
        mGameData.mTimeInQuarter   = UT_MinSec.FMinToSecs(mGameData.mTimeStruct);
        mUI.FSetTimeText(mGameData.mTimeStruct, mGameData.mQuarter);
    }
Beispiel #2
0
 // When they are tired of looking at the text, now we take them to the next play.
 public void BT_Done()
 {
     FExit();
     cPick.FEnter();
 }