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 System; | |
| using System.Collections.Generic; | |
| namespace Extensions | |
| { | |
| public class Observable<T> | |
| { | |
| protected T _value; | |
| private readonly List<Action<Observable<T>, T>> _subscribersWithSender = new List<Action<Observable<T>, T>>(); | |
| private readonly List<Action<T>> _subscribersWithoutSender = new List<Action<T>>(); |
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 Leopotam.EcsLite; | |
| using Random = UnityEngine.Random; | |
| namespace OdinGames.EcsLite.Shared.Extensions { | |
| public struct Entity { | |
| public static int Null => 0; | |
| } | |
| public static class LeoEcsLiteExtensions { | |
| public static bool GetTheOnlyEntity(this EcsFilter filter, out int outEntity) { |