public void SetDamageActive(bool dmg)
{
this.damageActive = dmg;
if(this.damageActive)
{
this.doExpand = true;
if(this.action == null ||
!this.action.CheckDamageDealer(this))
{
this.damageActive = false;
}
}
if(!this.damageActive)
{
this.doExpand = false;
this.blocked = new Hashtable();
this.audioClip = null;
this.prefab = null;
}
}