public MovingPart(MovingPart m)
 {
     this.ParentLoc        = Vector3.zero;
     this.ParentLoc.x      = m.ParentLoc.x;
     this.ParentLoc.y      = m.ParentLoc.y;
     this.ParentLoc.z      = m.ParentLoc.z;
     this.ParentRot        = Quaternion.Euler(m.ParentRot.eulerAngles.x, m.ParentRot.eulerAngles.y, m.ParentRot.eulerAngles.z);
     this.Scale            = m.Scale;
     this.CubeLoc          = m.CubeLoc;
     this.Name             = m.Name;
     this.ParentMovingPart = m.ParentMovingPart;
     this.hasCollider      = m.hasCollider;
     this.colliderRadius   = m.colliderRadius;
     this.colliderPosition = m.colliderPosition;
     this.colliderType     = m.colliderType;
     this.colliderHeight   = m.colliderHeight;
 }
示例#2
0
 public MovingPartController(MovingPart InPart, Transform Owner)
 {
     Part       = InPart;
     this.Owner = Owner;
     Container  = new GameObject((Part.Name));
 }
示例#3
0
 public MovingPartController(string CubeLessPart, Transform Owner)
 {
     Part       = null;
     this.Owner = Owner;
     Container  = new GameObject(CubeLessPart);
 }
 public Config()
 {
     Name        = "Null";
     StaticParts = new CubeData[0];
     MovingParts = new MovingPart[0];
 }