public void Update() { IPoly poly = tree.GetPoly(transform.position); if (poly != null) { poly.Draw(Color.yellow); } else { Debug.DrawLine(Vector3.zero, Vector3.up); } }