public void regDirect(string name, spriteFont font) { if (this.mapInfo.ContainsKey(name)) //var item = this.mapInfo[name]; //if (item != Script.Undefined) { throw new Exception("you can't reg the same name"); //ness } var item = new fontMgrItem(); //ness this.mapInfo[name] = item; item.font = font; }
public void reg(string name, string urlfont, string urlatalstex, string urlatalstex_add) { //重复注册处理 var item = this.mapInfo[name]; if (item != Script.Undefined) { throw new Exception("you can't reg the same name"); //ness } item = new fontMgrItem(); //ness this.mapInfo[name] = item; item.url = urlfont; item.urlatalstex = urlatalstex; item.urlatalstex_add = urlatalstex_add; }