public ShapeAction CreateShapeAction(ShapeActionType shapeActionType) { ShapeAction shapeAction = null; switch (shapeActionType) { case ShapeActionType.SetActive: shapeAction = new SetActiveShapeAction(m_ShapeDataFactory); break; case ShapeActionType.SetHighlight: shapeAction = new SetHighlightShapeAction(m_ShapeDataFactory); break; } if (shapeAction != null) { m_ShapeActions.Add(shapeAction); } return(shapeAction); }
public void Remove(ShapeAction shapeAction) { shapeAction.Destroy(); m_ShapeActions.Remove(shapeAction); }