Esempio n. 1
0
        private void OnEnable()
        {
            creator = target as HairGeometryCreator;

            processor.Add(new CreatorInputInspector(creator));
            processor.Add(new CreatorGroupInspector(creator));
            processor.Add(new CreatorBrushInspector(creator));
            processor.Add(new CreatorBrushView(creator));

            brushes.Add(KeyCode.M, new CreatorMoveBrush(creator));
            brushes.Add(KeyCode.R, new CreatorRemoveBrush(creator));
            brushes.Add(KeyCode.G, new CreatorShrinkBrush(creator, 0.1f));
            brushes.Add(KeyCode.S, new CreatorShrinkBrush(creator, -0.1f));
            brushes.Add(KeyCode.C, new CreatorColorBrush(creator));
        }
Esempio n. 2
0
 public CreatorColorBrush(HairGeometryCreator creator) : base(creator)
 {
 }
 public CreatorBrushInspector(HairGeometryCreator creator)
 {
     this.creator = creator;
 }
 public CreatorGroupInspector(HairGeometryCreator creator)
 {
     this.creator = creator;
 }
Esempio n. 5
0
 public CreatorBaseBrush(HairGeometryCreator creator)
 {
     Creator = creator;
 }
 public CreatorInputInspector(HairGeometryCreator creator)
 {
     this.creator = creator;
 }
Esempio n. 7
0
 public CreatorMoveBrush(HairGeometryCreator creator) : base(creator)
 {
 }
Esempio n. 8
0
 public CreatorShrinkBrush(HairGeometryCreator creator, float ratio) : base(creator)
 {
     this.ratio = ratio;
 }
Esempio n. 9
0
 public CreatorBrushView(HairGeometryCreator creator)
 {
     Creator = creator;
 }