Ejemplo n.º 1
0
    private void TurnOffConnPoint(Pathway path, ConnectionPoint connPoint)
    {
        int i = -1;

        foreach (ConnectionPoint connection in path.connectionPoints)
        {
            i++;
            if (connection == connPoint)
            {
                path.GetComponent <PathManager>().RpcSetConnPointOff(i);
                return;
            }
        }
        Debug.Log("Conn Point Not There");
        return;
    }