Example #1
0
 public void DeleteLine()
 {
     this.connectedQuad = null;
     if (line != null)
     {
         Destroy(line);
     }
 }
Example #2
0
        public bool ConnectWithQuad(int priority, QuadLine other)
        {
            if (HasConnection())
            {
                return(false);
            }

            this.connectedQuad = other;

            if (priority == 0)
            {
                line.SetPosition(1, other.transform.position);
            }

            return(true);
        }