} // end of PreBrainUpdate() public override void PostBrainUpdate() { // Check if the pushing state has changed and play associated sounds. if (!Mute && !WasPushing && Pushing) { Foley.PlayFanStart(this); Foley.PlayFanLoop(this); } if (wasPushing && !Pushing) { Foley.StopFanLoop(this); if (!Mute) { Foley.PlayFanStop(this); } } base.PostBrainUpdate(); } // end of PostBrainUpdate()