Example #1
0
        internal static CollisionEmitter Initialize(EcsWorld world)
        {
            if (instance != null)
            {
                return(instance);
            }

            instance = new CollisionEmitter(world);
            return(instance);
        }
Example #2
0
 private void Emit <T>(Collider other) where T : struct, ITriggerEvent
 {
     CollisionEmitter.GetInstance()
     .Emit <T>(gameObject, other);
 }
Example #3
0
 public static EcsSystems RegisterCollisionEmitter(this EcsSystems ecsSystems)
 {
     CollisionEmitter.Initialize(ecsSystems.World);
     InjectOneFrameComponents(ecsSystems);
     return(ecsSystems);
 }