Exemplo n.º 1
0
 private void Start()
 {
     ballButton     = button1.GetComponent <BallButtonScript>();
     threadButton   = button2.GetComponent <ThreadButtonScript>();
     columnButton   = button3.GetComponent <ColumnButtonScript>();
     scaleButton    = button4.GetComponent <ScaleButtonScript>();
     plastineButton = button5.GetComponent <PlastineButtonScript>();
     counterButton  = button6.GetComponent <CounterButtonScript>();
 }
    public void Start()
    {
        changer1 = ball.GetComponent <MaterialChanger>();
        changer2 = thread.GetComponent <MaterialChanger>();
        changer3 = column.GetComponent <MaterialChanger>();
        changer4 = scale.GetComponent <MaterialChanger>();
        changer5 = plastine.GetComponent <MaterialChanger>();
        changer6 = screen.GetComponent <MaterialChanger>();

        ballButton     = button1.GetComponent <BallButtonScript>();
        threadButton   = button2.GetComponent <ThreadButtonScript>();
        columnButton   = button3.GetComponent <ColumnButtonScript>();
        scaleButton    = button4.GetComponent <ScaleButtonScript>();
        plastineButton = button5.GetComponent <PlastineButtonScript>();
        counterButton  = button6.GetComponent <CounterButtonScript>();
    }