//找到具体的子物体节点
var role = this.transform.GetChild(1).gameObject;
print("roleName: "+role.name);
var mat = role.GetComponent<SkinnedMeshRenderer>();
var mat2 = new Material(Shader.Find("Standard"));
var r = getRandom(1);
var g = getRandom(1);
var b = getRandom(1);
mat2.color = new Color(r, g, b, 1);
mat.material = mat2;