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) { pPickupsModule.RegisterPelletCollect(); // Doesn't do anything else, shouldn't give itself to the module for update or anything }