GameParameters.SetCustomAnchorPos - notruilin/DeceptionGame GitHub Wiki

private void SetCustomAnchorPos();

Description

Edit this function to set customized anchor positions. Keep empty if you don't need to customize Anchors' Positions.

You need to select "Default" in Options Menu or set GameParameters.randomAnchor to false.

    private void SetCustomAnchorPos()
    {
        defaultAnchorPos.Clear();
        // Add Postions to defaultAnchorPos here to customize Anchors' Positions
        // Keep empty if you don't need to customize Anchors' Positions
        // You need to select "Default" in Options Menu 
        // Example : Anchor Positions are (1.5, 1.5), (4.5, 4.5), (6.5, 6.5), (8.5, 8.5)
        // Your code BEGINS HERE

        defaultAnchorPos.Add(new Vector3(1.5f, 1.5f, 0f));
        defaultAnchorPos.Add(new Vector3(4.5f, 4.5f, 0f));
        defaultAnchorPos.Add(new Vector3(6.5f, 6.5f, 0f));
        defaultAnchorPos.Add(new Vector3(8.5f, 8.5f, 0f));

        // Your code ENDS HERE
        if (defaultAnchorPos.Count > 0)
        {
            anchorCount = defaultAnchorPos.Count;
        }
    }