/// <summary> /// 分配一个对象 /// </summary> /// <param name="value">初始值</param> /// <returns></returns> public static VarString Alloc(string value) { VarString var = Alloc(); var.Value = value; return(var); }
/// <summary> /// 分配一个对象 /// </summary> /// <returns></returns> public static VarString Alloc() { VarString var = GameEntry.Pool.DequeueVarObject <VarString>(); var.Value = string.Empty; var.Retain(); return(var); }