コード例 #1
0
ファイル: SkidmarkMaker.cs プロジェクト: bigstupidx/Motor
 // Initiallizes the array holding the skidmark sections.
 void Awake()
 {
     Ins       = this;
     skidmarks = new markSection[maxMarks];
     for (var i = 0; i < maxMarks; i++)
     {
         skidmarks[i] = new markSection();
     }
     mesh = new Mesh();
     GetComponent <MeshFilter>().sharedMesh = mesh;
 }
コード例 #2
0
ファイル: SkidmarkMaker.cs プロジェクト: bigstupidx/Motor
 void OnDestroy()
 {
     Ins = null;
 }