Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Decision Maker
- //Notes: Bonus: options for not repeating chosen phrases
- function Update ()
- {
- }
- function OnGUI ()
- {
- if(GUI.Button (Rect(10,30,80,30), "Upload list file (.txt)"))
- {
- // 1. show OS file browser with "import" button.
- // 2. if (import button is pressed after user chooses file with appropriate extension)- upload file and display list of phrases clearly seperated
- // 3. after successful import, show "Choose for me" button
- // 4. if ("Choose for me" button is pressed )- animate / jumble all of the phrases
- // 5. wait a few seconds for animation to complete and then highlight/ show the randomly chosen phrase and play sound.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement