Exemple #1
0
        /// <summary>
        /// 分配一个对象
        /// </summary>
        /// <param name="value">初始值</param>
        /// <returns></returns>
        public static VarTransform Alloc(Transform value)
        {
            VarTransform var = Alloc();

            var.Value = value;
            return(var);
        }
Exemple #2
0
        /// <summary>
        /// 分配一个对象
        /// </summary>
        /// <returns></returns>
        public static VarTransform Alloc()
        {
            VarTransform var = GameEntry.Pool.DequeueVarObject <VarTransform>();

            var.Value = null;
            var.Retain();
            return(var);
        }