public static void ReleaseState <TState>(ref TState state) where TState : State, new() { state.entityId = default; state.tick = default; state.randomState = default; PoolStates <TState> .Recycle(ref state); }
public static void ReleaseState <TState>(ref State state) where TState : State, new() { state.tick = default; state.randomState = default; PoolStates <TState> .Recycle((TState)state); state = null; }