private void OnMouseDown() { string assetName = "Music/" + LayerMask.LayerToName(gameObject.layer) + "/(" + (1 + (int)(Random.value * 15f - Mathf.Epsilon)) + ")"; audioSource.PlayOneShot(Resources.Load <AudioClip>(assetName)); colorMenu.LockColor(LayerMask.LayerToName(gameObject.layer)); }