-
Notifications
You must be signed in to change notification settings - Fork 1
/
SplineSysWithPrefab.cs
56 lines (33 loc) · 1.1 KB
/
SplineSysWithPrefab.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using Den.Tools;
using Den.Tools.Splines;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Twobob.Mm2
{
public class SplineSysWithPrefab : SplineSys
{
// public SplineSys SplineSys;
public ObjectsPool.Prototype chosenType;
public float scale = 1f, scaleRange = 0;
public bool mergeSegments;
public bool spacingFromScale;
public float spacing = 1f, spacingRange = 0;
public float offset = 0, offsetRange = 0;
public bool isRandomYaw = false;
public SplineSysWithPrefab(SplineSys src)
{
CopyLinesFrom(src.lines);
scale = 1f;
spacing = 1f;
guiDrawNodes = src.guiDrawNodes;
guiDrawSegments = src.guiDrawSegments;
guiDrawDots = src.guiDrawDots;
guiDotsCount = src.guiDotsCount;
guiDotsEquidist = src.guiDotsEquidist;
}
public SplineSysWithPrefab() // Just in case the serialisier gets all upset with itsself again.
{
}
}
}