This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Entities; | |
using Unity.Mathematics; | |
using Unity.Physics; | |
using Unity.Physics.Extensions; | |
using UnityEngine; | |
namespace TMG.PhysicsAddForces | |
{ | |
[UpdateInGroup(typeof(FixedStepSimulationSystemGroup))] | |
public class AddForceSystem : SystemBase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Entities; | |
using Unity.Transforms; | |
namespace TMG.Tags | |
{ | |
public class MoveRedCubes : SystemBase | |
{ | |
private EndSimulationEntityCommandBufferSystem _endSimulationEntityCommandBufferSystem; | |
protected override void OnCreate() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Entities; | |
namespace TMG.ECS_Singletons | |
{ | |
public class ApplyRadiationSystem : SystemBase | |
{ | |
private EndSimulationEntityCommandBufferSystem _endSimulationEntityCommandBufferSystem; | |
protected override void OnCreate() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Entities; | |
namespace TMG.ECS_UI | |
{ | |
[UpdateInGroup(typeof(LateSimulationSystemGroup))] | |
public class DestroyCapsuleSystem : SystemBase | |
{ | |
private EndSimulationEntityCommandBufferSystem _endSimulationEntityCommandBufferSystem; | |
private Entity _counterEntity; | |
private DestroyedCapsuleCounterData _counterData; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Entities; | |
using Random = Unity.Mathematics.Random; | |
namespace TMG.ECS_Random | |
{ | |
[GenerateAuthoringComponent] | |
public struct CentralRandomData : IComponentData | |
{ | |
public Random Value; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Entities; | |
using Unity.Mathematics; | |
namespace TMG.ECS_EntityManager | |
{ | |
[GenerateAuthoringComponent] | |
public struct EntitySpawnData : IComponentData | |
{ | |
public Entity EntityPrefab; | |
public int2 SpawnGrid; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Entities; | |
namespace TMG.ECS_CommandBuffer | |
{ | |
public struct CapsuleTag : IComponentData {} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Entities; | |
namespace TMG.ConnectFour | |
{ | |
public struct HorizontalPosition : ISharedComponentData | |
{ | |
public int Value; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Entities; | |
namespace TMG.ChangeFilter | |
{ | |
[GenerateAuthoringComponent] | |
public struct BattleControlData : IComponentData | |
{ | |
public Entity Enemy1; | |
public Entity Enemy2; | |
public Entity Enemy3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Entities; | |
namespace TMG.DynamicBuffers | |
{ | |
[InternalBufferCapacity(8)] | |
[GenerateAuthoringComponent] | |
public struct FishLengthBufferElement : IBufferElementData | |
{ | |
public int Value; |
OlderNewer