public static GGrassPrototypeGroup Create(DetailPrototype[] detailPrototypes)
        {
            GGrassPrototypeGroup group = CreateInstance <GGrassPrototypeGroup>();

            for (int i = 0; i < detailPrototypes.Length; ++i)
            {
                group.Prototypes.Add((GGrassPrototype)detailPrototypes[i]);
            }

            return(group);
        }
예제 #2
0
 public static GGrassPrototypeGroupInspectorDrawer Create(GGrassPrototypeGroup group)
 {
     return(new GGrassPrototypeGroupInspectorDrawer(group));
 }
예제 #3
0
 public GGrassPrototypeGroupInspectorDrawer(GGrassPrototypeGroup group)
 {
     instance = group;
 }
 private void OnEnable()
 {
     instance = target as GGrassPrototypeGroup;
 }