示例#1
0
    void Start()
    {
        GameObject go = QualityStar.create(ui.transform, "star", 5);

        go.transform.localPosition = new Vector3(100, -100);

        go = QualityStar.create(ui.transform, "star", 3);
    }
示例#2
0
 /// <summary>
 /// 创建一个品质星星
 /// </summary>
 /// <param name=parent>父级</param>
 /// <param name=path>图片路径+名字</param>
 /// <param name=num>数量</param>
 /// <returns></returns>
 public static GameObject create(Transform parent, String path, int num)
 {
     return(QualityStar.create(parent, path, num, 0));
 }