Exemple #1
0
        private void Configure(IKanGameConfiguration configuration)
        {
            var contextBuilder = new KanEngineContextBuilder();

            contextBuilder.SetControllerSwitchAction(ChangeController);
            configuration?.Configure(this, contextBuilder);
            Context = contextBuilder.Build();
        }
        public KanGameObject(KanEngineContext context, bool attachOnCreate = true)
        {
            Context = context;

            if (attachOnCreate)
            {
                Attach();
            }
        }
 public KanGameController(KanEngineContext context)
 {
     Context = context;
 }