Example #1
0
    private Sprite getShapeSprite(TutorialOverlayShape shape)
    {
        Sprite result = null;

        switch (shape)
        {
        case TutorialOverlayShape.CIRCLE:
            result = CircleSprite;
            break;

        case TutorialOverlayShape.RECTANGLE:
            result = RectangleSprite;
            break;

        case TutorialOverlayShape.NONE:
            result = SquareSprite;
            break;
        }
        return(result);
    }
 public DTutorialOverlay()
 {
     Target               = null;
     Position             = Vector2.zero;
     AutoSize             = false;
     Size                 = new Vector2(100f, 100f);
     Shape                = TutorialOverlayShape.CIRCLE;
     ArrowPosition        = TutorialOverlayArrowPosition.LEFT;
     ArrowOffset          = Vector2.zero;
     TextBoxOffset        = Vector2.zero;
     TextBoxPivot         = new Vector2(0.5f, 0.5f);
     MaxTextBoxSize       = 300f;
     ShowHighlightOutline = true;
     Text                 = "";
     ShowArrow            = true;
     Opacity              = 0.6f;
     DisableUI            = true;
     EnableTarget         = true;
     BlocksRaycast        = false;
 }