Exemplo n.º 1
0
        public TreeRuntimeComponentData Register(EntityManager manager, Entity e)
        {
            var rt = new TreeRuntimeComponentData
            {
                Index = ((AllocState)_allocHandle.Target).NextIndex++,
            };

            manager.AddSharedComponentData(e, this);
            manager.AddComponentData(e, rt);
            Activate(rt);
            return(rt);
        }
Exemplo n.º 2
0
 private void Activate(TreeRuntimeComponentData e)
 {
     State[e.Index] = NodeState.Activating;
 }