예제 #1
0
 private void OnDestroy()
 {
     if (me != null)
     {
         GameInterface_Skill.RemoveSkillBuff(me.gameObject, (int)GameBuff.NuclearDamageHP);
         me = null;
     }
 }
예제 #2
0
 private void OnDestroy()
 {
     if (me != null)
     {
         GameInterface_Skill.RemoveSkillBuff(me.gameObject, (int)GameBuff.LaserDamageHP);
         GameInterface_Skill.RemoveSkillBuff(me.gameObject, Affix.EffectType.SlowDown2);
         me = null;
     }
 }
예제 #3
0
        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);
                }
            }
        }
예제 #4
0
        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;
                }
            }
        }
예제 #5
0
 void RemoveBuff(GameObject go)
 {
     GameInterface_Skill.RemoveSkillBuff(go, 151);
     healObjects.Remove(go);
 }