void Start() { Handler = new ChunkHandler(chunkSize); Handler.AutoDestroyRight = true; Handler.AutoDestroyLeft = true; trackObject = Camera.main.transform; cloudSep = gameObject.AddComponent <CloudSeperator>(); cloudSep.handler = handler; cloudSep.trackObject = trackObject; cloudSep.minDistance = minDistance; }
void Start() { handler = new ChunkHandler(chunkSize); trackObject = Camera.main.transform; maxTime = Random.Range(1f, 2f); handler.AutoDestroyLeft = true; handler.AutoDestroyDown = true; handler.AutoDestroyRight = true; handler.AutoDestroyUp = true; cloudSep = gameObject.AddComponent <CloudSeperator>(); cloudSep.handler = handler; cloudSep.trackObject = trackObject; cloudSep.minDistance = 3; }