protected void Update() { if (!Input.GetKeyDown(this.generateKey)) { return; } int index = RandomEx.Index(this.primitiveRates); GameObject newObject = GameObject.CreatePrimitive(this.primitiveTypes[index]); GameObject.Destroy(newObject, RandomEx.Range(0.2f, 0.5f)); this.generateCount[index] += 1; }