Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void Remove(ShapeAction shapeAction)
 {
     shapeAction.Destroy();
     m_ShapeActions.Remove(shapeAction);
 }