Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GameObject handPrefab=//YourHandPrefab added in editor, etc
- Vector3[] handPositions=//hand positions
- if(yourUpButtonPressed){
- handPositionIndex++;
- handPositionIndex=handPositionIndex%handPositions.Length; //this jumps back to 0 if Length reached
- handPosition.transform.position=handPositions[handPositionIndex];
- }
Add Comment
Please, Sign In to add comment