Esempio n. 1
0
    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
        }
    }
Esempio n. 2
0
 override public void GiveEffectToPlayer(PlayerPickupsModule pPickupsModule)
 {
     pPickupsModule.RegisterPelletCollect();
     // Doesn't do anything else, shouldn't give itself to the module for update or anything
 }