/// <summary> Removes the given position </summary> /// <param name="position"> The position to remove </param> public void RemovePosition(MultiPositionValue position) { if (multiPosition == null) { multiPosition = new MultiPosition(transform); } multiPosition.RemovePosition(position); }
/// <summary> Adds position to use </summary> /// <param name="rotation"> position to apply </param> /// <returns> The MultiPositionValue reference </returns> public MultiPositionValue AddNewPosition(Vector3 position) { if (multiPosition == null) { multiPosition = new MultiPosition(transform); } return(multiPosition.AddNewPosition(position)); }