Ejemplo n.º 1
0
        public FlyingCubeInitializator(MainController mainController, FlyingCubeData flyingCubeData)
        {
            var spawnedCube = Object.Instantiate(flyingCubeData.cubeStruct.Cube,
                                                 flyingCubeData.cubeStruct.StartPosition,
                                                 Quaternion.identity);

            var cubeStruct = flyingCubeData.cubeStruct;

            cubeStruct.Cube = spawnedCube;

            var cubeModel = new FlyingCubeModel(cubeStruct);

            mainController.AddUpdatable(new FlyingCubeController(cubeModel));
        }
Ejemplo n.º 2
0
 public FlyingCubeController(FlyingCubeModel flyingCubeModel)
 {
     _flyingCubeModel = flyingCubeModel;
 }