// Use this for initialization void Start() { UnityEngine.Debug.Log("Start"); Loom.Initialize(); initWorkers(workers); foreach (Thread w in workers) { w.Start(); } Vector3 ratio = ledseq.getRatio(); objectsWorld = new Bounds(objectWorldCenter, 2 * objectWorldExtend * ratio); particlesWorld = new Bounds(particlesWorldCenter, 2 * particlesWorldExtend * ratio); if (NeedSaveSeq) { ledseq.open(SeqName, SeqFrames); } if (NeedObjectVox) { initVoxObjects(objs); initMeshListeners(liss); vox = initMeshVox(ledseq, objectsWorld, objs); vox.Start(); MeshVox.setGradientColor(NeedGradientColor, 1, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff); MeshVox.setSolidFill(NeedSolidFill); MeshVox.setFillColor(fillColor); } if (NeedParticleVox) { initParticleObjects(pos); initParticleListeners(pliss); pvox = initParticleVox(ledseq, particlesWorld, pos); } if (NeedClickRipple) { glow = GameObject.Find("/Glow"); glowps = glow.GetComponent <ParticleSystem>(); ripple = GameObject.Find("/Ripple"); rippleps = ripple.GetComponent <ParticleSystem>(); if (ripple.GetComponent <IParticleObject>() != null) { pos.Add(ripple.GetComponent <IParticleObject>()); } } if (NeedEmulator) { emulator = initEmulator(ledseq); ledWorld = emulator.getLedBound(); GameObject marker = new GameObject("Marker"); marker.transform.position = ledWorld.center; } if (NeedInteraction) { interaction = new LEDInteractionManager(emulator, this); } if (NeedBridge) { bridge = initBridge(ledseq); } }