Exemple #1
0
        static void HandlecallbackMethod1(object sender, IGameEvent @event)
        {
            Console.WriteLine("Now at render");
            var manager = @event.GetManager();

            manager.Notify(typeof(Entity0.PhaseTick), null, @event);
        }
Exemple #2
0
        static void HandlecallbackMethod(object sender, IGameEvent @event)
        {
            Console.WriteLine("Now at preRender");
            var manager = @event.GetManager();

            manager.Subscribe(typeof(Entity0.PhaseTick), entity.phase.Invoke);
        }