Exemplo n.º 1
0
 public static void AddStatInt <T>(ISimGameWorldReadWriteAccessor accessor, Entity entity, int value)
     where T : struct, IComponentData, IStatInt
 {
     if (!accessor.HasComponent <T>(entity))
     {
         accessor.AddComponent(entity, new T {
             Value = value
         });
     }
 }