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