void Keyboard() { if (Input.GetKeyDown("q")) { Mode = Specs.VIZ_MODE.PARTICLE_COLOR; foreach (Transform child in transform) { Destroy(child.gameObject); } InitTemperature(); InitPoints(); } else if (Input.GetKeyDown("w")) { Mode = Specs.VIZ_MODE.PARTICLE_RADIUS; foreach (Transform child in transform) { Destroy(child.gameObject); } InitSpherePattern(); } }
private void DestroyOtherViz(Specs.VIZ_MODE thisViz) { if (thisViz != Specs.VIZ_MODE.PARTICLE_COLOR && thisViz != Specs.VIZ_MODE.PARTICLE_RADIUS) { DestroyPoints(); } if (thisViz != Specs.VIZ_MODE.TEXTURE) { Destroy(texGO); } if (thisViz != Specs.VIZ_MODE.TEXTURE_PAINT) { Destroy(texGO); } if (thisViz != Specs.VIZ_MODE.TUBES) { DestroyTubes(); } LastVizMode = thisViz; }