static void HandlecallbackMethod1(object sender, IGameEvent @event) { Console.WriteLine("Now at render"); var manager = @event.GetManager(); manager.Notify(typeof(Entity0.PhaseTick), null, @event); }
static void HandlecallbackMethod(object sender, IGameEvent @event) { Console.WriteLine("Now at preRender"); var manager = @event.GetManager(); manager.Subscribe(typeof(Entity0.PhaseTick), entity.phase.Invoke); }