/// <summary> /// 返回制定查询实体的 单个字段内容 或者 string.Empty /// </summary> /// <param name="qe"></param> /// <param name="field"></param> /// <returns></returns> public static string GetValue(QEntity qe, string field) { string re = string.Empty; if (qe != null && qe.FieldValue != null && qe.FieldValue.ContainsKey(field)) { re = qe.FieldValue[field].ToString(); } if (re == null) { re = string.Empty; } return(re); }
/// <summary> /// /// </summary> /// <param name="incDisabled"></param> /// <param name="incUnVisible"></param> /// <param name="p_pgids"></param> /// <returns></returns> protected List <Group> DoGetGroups(bool incDisabled, bool incUnVisible, params int[] p_pgids) { return(QEntity.GetList <Group>(DoGetGroups(null, incDisabled, incUnVisible, p_pgids))); }
public void TestTrigger(QEntity self, QEntity target) { Debug.Log(self.name + "被" + target.name + "穿过"); }
public void TestCollision(QEntity self, QEntity target) { Debug.Log(self.name + "与" + target.name + "发生碰撞"); }