using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
///
/// ���ӵ�ӿ�������������ڹ������ӵ��Ŀ��ӿ�
///
public class ConnectionPointInterfaceReference : MonoBehaviour
{
public GameObject targetInterface; // Ŀ��ӿڶ���
private MeshRenderer meshRenderer;
// public List materials = new List();
public void Start()
{
//materials = Resources.LoadAll("Material").ToList();
if (GetComponent() != null)
{
meshRenderer = GetComponent();
GameObject Cylinder = transform.parent.Find("WireCylinder").gameObject;
meshRenderer.materials[1].color = Cylinder.GetComponent().material.color;
//meshRenderer.materials[1]
}
}
}