Esempio n. 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);
        }
Esempio n. 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);
        }