コード例 #1
0
ファイル: CalculatePath.cs プロジェクト: mmvlad/ecs
        void IPoolableRecycle.OnRecycle()
        {
            this.result = default;
            PoolArray <UnityEngine.Vector3> .Recycle(ref this.path);

            PoolArray <ME.ECS.Pathfinding.Node> .Recycle(ref this.nodes);
        }
コード例 #2
0
ファイル: CalculatePath.cs プロジェクト: mmvlad/ecs
        public void CopyFrom(IComponentCopyable other)
        {
            var _other = (Path)other;

            this.result = _other.result;
            ArrayUtils.Copy(in _other.path, ref this.path);
            ArrayUtils.Copy(in _other.nodes, ref this.nodes);
        }