コード例 #1
0
 public void Initialise()
 {
     if (_CRSpline.pts == null || _CRSpline.pts.Length < 4)
     {
         _CRSpline.pts = new AudioSplinePoint[4];
         float num = 0f;
         for (int i = 0; i < 4; i++)
         {
             _CRSpline.pts[i] = CreateAudioSplinePoint();
             Vector3 position = _CRSpline.pts[i].transform.position;
             position.x = num;
             _CRSpline.pts[i].transform.position = position;
             num += 5f;
         }
         _CRSpline.RefreshPointNames();
         AddAudioSource();
     }
 }