public void FSetPostPlayText(PRAC_PlayInfo info) { if (info.mWasCatch) { if (info.mWasTackled) { mTxtResult.text = "Catch for " + System.Math.Round(info.mYardsGained, 0) + " yards"; } else { mTxtResult.text = "Catch, and he's still running"; } } else if (info.mWasIncompletion) { mTxtResult.text = "Incompletion"; } else if (info.mWasInterception) { mTxtResult.text = "INTERCEPTION!"; } else if (info.mWasSack) { mTxtResult.text = "SACKED!"; } }
private PRAC_PlayInfo ResetPlayInfo(PRAC_PlayInfo info) { info.mYardsGained = 0f; info.mTackleSpot = 0f; info.mWasTackled = false; info.mWasInterception = false; info.mWasIncompletion = false; info.mWasCatch = false; info.mWasSack = false; info.mWasTouchdown = false; return(info); }
public override void FEnter() { cMan.mState = PRAC_STATE.SPLAY_RUNNING; FindObjectOfType <PC_Controller>().mState = PC_Controller.PC_STATE.SACTIVE; foreach (PRAC_Ath a in cMan.rAths) { a.mState = PRAC_Ath.PRAC_ATH_STATE.SDOING_JOB; } mCountdownActive = false; mBallThrown = false; mLastShotFire = Time.time; mInfo = ResetPlayInfo(mInfo); }
public void FPlayOver(PRAC_PlayInfo info) { if (info.mWasCatch) { FPlayClipAnnouncer("PLY_Good0"); } else if (info.mWasIncompletion) { FPlayClipAnnouncer("PLY_Fail0"); } else if (info.mWasInterception) { FPlayClipAnnouncer("TERRIBLE"); } }