subGameObject.transform.Rotate (0,90,90,Space.Self);

一行代码