Ejemplo n.º 1
0
    void PatternTest()
    {
        var lPattern = new Vector3Int[]
        {
            new Vector3Int(0, 0, 0),
            new Vector3Int(1, 0, 0),
            new Vector3Int(2, 0, 0),
            new Vector3Int(0, 1, 0),
            new Vector3Int(0, 2, 0),
            new Vector3Int(0, 3, 0)
        };

        var anchor   = new Vector3Int(1, 8, 0);
        var rotation = Quaternion.Euler(0, 0, -90);

        if (!_grid.TryPlacePattern(1, lPattern, anchor, rotation))
        {
            Debug.Log("Pattern outside grid bounds.");
        }
    }