Example #1
0
    public bool CanBePlaceThere(Vector3 pos, Owner k)
    {
        var z = bref.ApprovedBuilding(pos, k) && Intersect(pos);

        for (int i = 0; i < colz.Length; i++)
        {
            if (z)
            {
                colz[i].material.color = Color.green;
            }
            else
            {
                colz[i].material.color = Color.red;
            }
        }

        if (agi)
        {
            agi.transform.position = pos;
        }
        return(z);
    }