public void DeleteLastPosition() { Vector3PathPosition lastPos = posList[posList.Length - 1]; if (lastPos != null) { GameObject.DestroyImmediate(lastPos.gameObject); RecolorPathGizmos(); } }
void OnEnable() { v3pp = (Vector3PathPosition)target; }