상속: MonoBehaviour
예제 #1
0
	//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);
	}
예제 #2
0
    //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);
    }