protected IGREffectParticles attachEffect(string effid, string attachID, bool single = true) { IGREffectParticles eff = createEffect(effid, single); if (eff != null) { IGRCharacter grc = (m_gr as IGRCharacter); if (grc != null) { grc.attachEntity(attachID, eff); } else { DebugTrace.print("attachEffect should be IGRCharacter!"); } } return(eff); }
protected IGREffectParticles attachEffect(string effid, string attachID, bool single = true) { IGREffectParticles iGREffectParticles = this.createEffect(effid, single); bool flag = iGREffectParticles != null; if (flag) { IGRCharacter iGRCharacter = this.m_gr as IGRCharacter; bool flag2 = iGRCharacter != null; if (flag2) { iGRCharacter.attachEntity(attachID, iGREffectParticles); } else { DebugTrace.print("attachEffect should be IGRCharacter!"); } } return(iGREffectParticles); }