public static void SetStreetColor(StreetComponent _comp, Color _newColor)
 {
     if (_comp.m_MeshRenderer.material.color != _newColor)
     {
         _comp.m_MeshRenderer.material.color = _newColor;
     }
 }
Ejemplo n.º 2
0
 public int GetIndex(StreetComponent _other)
 {
     for (int i = 0; i < m_Connections.Length; i++)
     {
         if (m_Connections[i].m_OtherComponent == _other)
         {
             return(i);
         }
     }
     Debug.LogError("No Connection with this Component: " + _other);
     return(-1);
 }
Ejemplo n.º 3
0
        }                                              //Are we self at the Start of our Component

        public Connection(Connection _otherConn, StreetComponent _self, bool _ownStart)
        {
            if (_otherConn != null)
            {
                Combine(this, _otherConn);
            }
            m_Owner      = _self;
            m_OwnerStart = _ownStart;
            if (m_OtherConnection != null)
            {
                id = m_OtherComponent.ID;
            }
        }