Skip to content

Instantly share code, notes, and snippets.

View antontidev's full-sized avatar
🍁
Whoaa whole life

Anton antontidev

🍁
Whoaa whole life
View GitHub Profile
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>>();
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) {