Skip to content

Instantly share code, notes, and snippets.

View kdrzymala's full-sized avatar

Karol Drzymała kdrzymala

View GitHub Profile
@kdrzymala
kdrzymala / InjcetableFeature.cs
Last active January 4, 2023 08:26
A feature that's Injectable by Zenject
using Entitas;
using Zenject;
using System.Collections;
using System.Collections.Generic;
public class InjectableFeature : Feature
{
public InjectableFeature()
: base()
{
public class BetterEvent
{
private List<System.Action> _list;
public BetterEvent( int prealocate = 10 )
{
_list = new List<System.Action>( prealocate );
}
public void Add( System.Action callback )