Example #1
0
        public SystemController(Canvas canvas)
        {
            Container.BindScriptableObject <PlayerModel>("Player");
            Container.BindScriptableObject <EnemyModel>("Enemy");
            Container.BindScriptableObject <FruitModel>("Fruit");

            Container.Bind <WorldController>();
            Container.BindInstance(canvas);
            Container.Bind <EnemySpawnController>();
            Container.Bind <FruitSpawnController>();
            Container.Bind <InputController>();
            Container.Bind <PlayerController>();
            Container.Bind <PlayerUIController>();

            var monoControllers = Container.GetBindedObjects().ToList().FindAll(c => c is MonoControllers);

            _monoControllerses.AddRange(monoControllers);
        }