static public int Death(IntPtr l) { try { GameFramework.EntityViewModel self = (GameFramework.EntityViewModel)checkSelf(l); self.Death(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
private void OnDeadNotify(EntityInfo npc) { EntityViewModel view = EntityController.Instance.GetEntityViewById(npc.GetId()); view.Death(); }