Example #1
0
 //Position the riding dude at the correct location on the seesaw
 void placeDude()
 {
     if (teeterSide == 'l') //Switch the seesaw image to other side
     {
         sawObjL.SetActive(true);
         sawObjR.SetActive(false);
         bouncerScript.setPositionOnTeeter(saw.position.x, 'l'); //Position rider on the appropriate side
     }
     else                                                        //Switch the seesaw image to other side
     {
         sawObjR.SetActive(true);
         sawObjL.SetActive(false);
         bouncerScript.setPositionOnTeeter(saw.position.x, 'r');             //Position rider on the appropriate side
     }
 }