Ejemplo n.º 1
0
 void Awake()
 {
     input = transform.Find("Input").GetComponent<LogicInput>();
     surface = transform.Find("Archway/Surface").GetComponent<PortalDoorSurface>();
     lightMaterial = transform.Find("Archway/Light").GetComponent<MeshRenderer>().material;
     shineMaterial = transform.Find("Archway/Shine").GetComponent<MeshRenderer>().material;
     lightRenderer = transform.Find("Archway/Light").GetComponent<MeshRenderer>();
     lightCollider = transform.Find("Archway/Light").GetComponent<MeshCollider>();
     sound = transform.Find("Audio").GetComponents<AudioSource>();
 }
Ejemplo n.º 2
0
 public void setLinkedSurface(PortalDoorSurface link)
 {
     linkedSurface = link;
     //playerCooldown = 2;
 }