private void OnDestroy() { if (me != null) { GameInterface_Skill.RemoveSkillBuff(me.gameObject, (int)GameBuff.NuclearDamageHP); me = null; } }
private void OnDestroy() { if (me != null) { GameInterface_Skill.RemoveSkillBuff(me.gameObject, (int)GameBuff.LaserDamageHP); GameInterface_Skill.RemoveSkillBuff(me.gameObject, Affix.EffectType.SlowDown2); me = null; } }
private void OnTriggerExit(Collider other) { var attr = NetworkUtil.GetAttr(other.gameObject); if (attr != null) { if (attr == me) { Util.ShowMsg("退出核弹区域"); me = null; GameInterface_Skill.RemoveSkillBuff(attr.gameObject, (int)GameBuff.NuclearDamageHP); } } }
private void OnTriggerExit(Collider other) { var attr = NetworkUtil.GetAttr(other.gameObject); if (attr != null) { if (attr.IsMine()) { GameInterface_Skill.RemoveSkillBuff(attr.gameObject, (int)GameBuff.LaserDamageHP); GameInterface_Skill.RemoveSkillBuff(attr.gameObject, Affix.EffectType.SlowDown2); me = null; } } }
void RemoveBuff(GameObject go) { GameInterface_Skill.RemoveSkillBuff(go, 151); healObjects.Remove(go); }