コード例 #1
0
ファイル: App.cs プロジェクト: PawelklosPL/GameDevelopment
        public static void Register()
        {
            if (_registered) return;
            _registered = true;

            var keyboardControl = new KeyboardControl();

            DependencyInjection.Register((IKeyboardComponent)keyboardControl);
            DependencyInjection.Register((IKeyboardControl)keyboardControl);
        }
コード例 #2
0
ファイル: App.cs プロジェクト: damian-666/GameDevelopment
        public static void Register()
        {
            if (_registered)
            {
                return;
            }
            _registered = true;

            var keyboardControl = new KeyboardControl();

            DependencyInjection.Register((IKeyboardComponent)keyboardControl);
            DependencyInjection.Register((IKeyboardControl)keyboardControl);
        }