//sets up the renderer, modifier and start material void Start () { render = GetComponent<Renderer> (); render.material = inactive; modifier = GetComponent<InstrumentModifier> (); //get adjacent UIBlocks above = GetAdjacent(Vector3.up); forward = GetAdjacent(Vector3.forward); back = GetAdjacent(Vector3.back); below = GetAdjacent(Vector3.down); }
//sets up the renderer, modifier and start material void Start() { render = GetComponent <Renderer> (); render.material = inactive; modifier = GetComponent <InstrumentModifier> (); //get adjacent UIBlocks above = GetAdjacent(Vector3.up); forward = GetAdjacent(Vector3.forward); back = GetAdjacent(Vector3.back); below = GetAdjacent(Vector3.down); }