override public void GiveEffectToPlayer(PlayerPickupsModule pPickupsModule) { pPickupsModule.RegisterPelletCollect(); pPickupsModule.SetVariable(c_sVariableName_fSuperPelletStartTime, Time.time); GhostsManager.Instance.GiveFleeBehaviourToGhosts(); if (!pPickupsModule.HasActiveEffect(this)) { pPickupsModule.GiveActiveEffect(this); PlayerCharacter.Instance.CanKillGhosts = true; PlayerCharacter.Instance.m_pNavMeshObstacle.carving = true; // So ghosts won't try to get through the player when trying to go away from him } }
override public void GiveEffectToPlayer(PlayerPickupsModule pPickupsModule) { if (pPickupsModule.HasActiveEffect(this)) { return; } pPickupsModule.GiveActiveEffect(this); ResetVariables(pPickupsModule); InitHookObject(pPickupsModule); pPickupsModule.SetVariable(c_sVariableName_eGrapplingHookCurrentStep, EGrapplingHookEffectStep.AWAITING_INPUT); }