AffenCode Service Locator

Implementation of the Service Locator pattern.

How to

using AffenCode.ServiceLocator;
public class GameStateData
{
    public int Test;
}

private void Start()
{
    Service<GameStateData>().Set(new GameStateData);
    Service<GameStateData>().Get().Test = 100;
}