Ejemplo n.º 1
0
        private void Start()
        {
            _calculateScaleView.BoxModel       = _boxController.GetModel();
            _calculateScaleView.ActivatorModel = _activatorController.GetModel();
            _calculateScaleView.MovementModel  = _movementController.GetModel();

            _calculateScaleView.OnReadyToCalculate = () =>
            {
                CalculateScale();
            };

            _calculateScaleView.OnGameover = () =>
            {
                _boxController.GameIsOver();
            };

            _movementController.OnCalculate = () =>
            {
                _calculateScaleView.CheckingPositon();
            };
        }