Example #1
0
    override public void EffectEnd(PlayerPickupsModule pPickupsModule)
    {
        GhostsManager.Instance.ResetGhostsToNormalBehaviour();
        pPickupsModule.RemoveActiveEffect(this);
        PlayerCharacter.Instance.CanKillGhosts = false;
        PlayerCharacter.Instance.m_pNavMeshObstacle.carving = false;

        GameManager.Instance.SuperPelletEffectAboutToWearOut = false;
    }
    override public void EffectEnd(PlayerPickupsModule pPickupsModule)
    {
        GrapplingHook pHook = (GrapplingHook)(pPickupsModule.GetVariable(c_sVariableName_pGrapplingHookObject));

        Destroy(pHook.gameObject);

        ResetVariables(pPickupsModule);

        m_pSuperGhostKillEffect.DetachEffect(pPickupsModule.m_pMaster);

        pPickupsModule.RemoveActiveEffect(this);
        pPickupsModule.m_pMaster.SetBehaviourFrozen(false);
        pPickupsModule.m_pMaster.CanKillGhosts = false;
    }
Example #3
0
 /// <summary>
 /// Has to be called by children!
 /// </summary>
 virtual public void EffectEnd(PlayerPickupsModule pPickupsModule)
 {
     pPickupsModule.RemoveActiveEffect(this);
 }