예제 #1
0
 public LevelGeneratorModel(LevelGeneratorData levelGeneratorData, PoolContext poolContext, GameObject generatorObject)
 {
     _levelGeneratorData = levelGeneratorData;
     _poolContext        = poolContext;
     _edgeCollider       = generatorObject.GetComponent <EdgeCollider2D>();
     _lineRenderer       = generatorObject.GetComponent <LineRenderer>();
 }
        public LevelGeneratorInitializeController(PoolContext poolContext, LevelGeneratorData generatorData)
        {
            var generatorObject = Object.Instantiate(generatorData.GeneratorObject, Vector3.zero, Quaternion.identity);

            poolContext.LevelGeneratorModel =
                new LevelGeneratorModel(generatorData, poolContext, generatorObject);
        }