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(); }
void Start() { cPPMan = GetComponent <PP_Manager>(); cArrMan = GetComponent <PP_Man_Arr>(); }