Esempio n. 1
0
 protected override void OnEnable()
 {
     base.OnEnable();
     this.m_Player.BlockMoves();
     if (this.m_ChatterName != string.Empty)
     {
         ChatterManager.Get().Play(this.m_ChatterName, 0f);
     }
     this.m_Animator.SetTrigger(this.m_TDiarrhea);
 }
Esempio n. 2
0
    public override bool TakeDamage(DamageInfo damage_info)
    {
        bool result = base.TakeDamage(damage_info);

        if (this.m_ChatterName != string.Empty)
        {
            ChatterManager.Get().Play(this.m_ChatterName, 0f);
        }
        return(result);
    }
Esempio n. 3
0
 public override bool CanTrigger()
 {
     return((!this.m_CantTriggerDuringDialog || !DialogsManager.Get().IsAnyDialogPlaying()) && (!Player.Get().m_DreamActive || !ChatterManager.Get().IsAnyChatterPlaying()) && (!this.m_OneTimeUse || !base.WasTriggered()));
 }