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