public void Init(IGameSystems gameSystems, Context context) { for (int i = 0; i < systems.Count; ++i) { systems[i].Init(gameSystems, context); } }
public void Init(IGameSystems gameSystems, Context ctx) { mainCamera = Object .Instantiate(ctx.assets.Get <GameObject>("prefabs", "system/main camera")) .GetComponent <Camera>(); virtualCamera = Object .Instantiate(ctx.assets.Get <GameObject>("prefabs", "system/cm vcam")) .GetComponent <CinemachineVirtualCamera>(); }
public void Init(IGameSystems gameSystems, Context ctx) { }
public void Init(IGameSystems gameSystems, Context ctx) { // either hook up entity created listener directly to entity system, // or hook up with an event pump }
// private Map map; public void Init(IGameSystems gameSystems, Context ctx) { // anim = game.anim; // map = game.map; }
public void Init(IGameSystems gameSystems, Context ctx) { assets = (Assets)ctx.assets; }