void Update() { CameraControl(); if (Time.frameCount % 30 == 0) { Vector3 pos = new Vector3(Random.Range(-5.0f, 5.0f), Random.Range(-1.0f, 2.0f) + 1.0f, Random.Range(-4.0f, 4.0f) - 10.0f); Vector3 dir = new Vector3(0.0f, 0.0f, 1.0f); DSBeamManager.AddEntity(pos, dir); DSShockwaveManager.AddEntity(pos); DSRadialBlurManager.AddEntity(pos); } if (Input.GetKeyUp(KeyCode.Space)) { showGUI = !showGUI; } }