Example #1
0
    void InitializeAnchor(PlatformAnchorsTypes _anchorType)
    {
        PlatformAnchors anchor = TransformAnchorByType(_anchorType);

        switch (_anchorType)
        {
        case PlatformAnchorsTypes.Stick:
            break;

        case PlatformAnchorsTypes.Stoper:
            break;
        }
    }
Example #2
0
    void PositionizeAnchor(PlatformAnchorsTypes _anchorType)
    {
        PlatformAnchors anchor = TransformAnchorByType(_anchorType);

        switch (_anchorType)
        {
        case PlatformAnchorsTypes.Stick:
            anchor._transform.localPosition = new Vector3(Width * 0.5f, -10f, 0f);
            break;

        case PlatformAnchorsTypes.Stoper:
            anchor._transform.localPosition = new Vector3(Width * 0.5f, 0f, 0f);
            break;

        case PlatformAnchorsTypes.Checker:
            anchor._transform.localPosition = new Vector3(Width * 0.5f, 0f, 0f);
            break;
        }
    }
Example #3
0
 PlatformAnchors TransformAnchorByType(PlatformAnchorsTypes _anchorType)
 {
     return(_anchors.Find(obj => obj._type == _anchorType));
 }