Exemple #1
0
 //Copy constructor
 public ObjectPlacer(ObjectPlacer other)
 {
     name            = other.name + " Clone";
     objectReference = other.objectReference;
     position        = other.position;
     distance        = other.distance;
     offset          = other.offset;
     type            = other.type;
     rotation        = other.rotation;
     scale           = other.scale;
     constraints     = other.constraints;
 }
Exemple #2
0
 //Constructor
 public ObjectPlacer()
 {
     name            = "Object Placer";
     objectReference = null;
     position        = Vector2.zero;
     distance        = .1f;
     offset          = 0f;
     type            = offsetType.arcDistance;
     rotation        = Vector3.zero;
     scale           = Vector3.one;
     constraints     = new bool[] { true, true, true };
 }