public void DeleteLastPosition()
    {
        Vector3PathPosition lastPos = posList[posList.Length - 1];

        if (lastPos != null)
        {
            GameObject.DestroyImmediate(lastPos.gameObject);
            RecolorPathGizmos();
        }
    }
Esempio n. 2
0
 void OnEnable()
 {
     v3pp = (Vector3PathPosition)target;
 }