Example #1
0
 private void Leave(Knob knob)
 {
     knob.ChangeColour(Color.white);
     grab.approached = null;
     grab.grabbed    = null;
     grab.hand       = null;
 }
Example #2
0
    private void Grabbed(Knob knob, IHand hand)
    {
        grab.hand = hand;
        knob.ChangeColour(Color.red);

        knobs.FadeOtherKnobs(knob);
        layer += 1;
        text  += knob.Text();
        string arrangement = knobArranger.Arrange(layer * 0.2f);

        debug.Log(arrangement);

        grab.grabbed    = knob;
        grab.approached = null;
    }
Example #3
0
 private void Approach(Knob knob)
 {
     grab.approached = knob;
     knob.ChangeColour(Color.black);
 }