예제 #1
0
        public InputController(PlayerBase player)
        {
            _playerBase = player;

            _saveDataRepository = new SaveDataRepository();
            _repository         = new Repository();
            new ControllerTest1(_repository);
            new ControllerTest2(_repository);
        }
예제 #2
0
파일: Main.cs 프로젝트: n1ron/Unity2
        private void Awake()
        {
            Instance = this;

            MainCamera = Camera.main;
            Player     = GameObject.FindGameObjectWithTag("Player").transform;

            SaveDataRepository = new SaveDataRepository();
            PhotoController    = new PhotoController();

            PlayerController = new PlayerController(new UnitMotor(
                                                        GameObject.FindObjectOfType <CharacterController>().transform));
            InputController = new InputController();

            _controllers    = new IOnUpdate[2];
            _controllers[0] = InputController;
            _controllers[1] = PlayerController;
        }