示例#1
0
 public void submit()
 {
     if ((charfile.charnum == 0) && (itemfile.imgnum == 4))
     {
         textbox.hints.text   = "Ah thank you so much! I had to finish an art piece tonight";
         itemfile.bpencilcase = true;
         textbox.thankyou();
         StartCoroutine(Correct());
     }
     else if ((charfile.charnum == 1) && itemfile.imgnum == 3)
     {
         textbox.hints.text = "...Don't tell anyone this is mine okay? thanks.";
         itemfile.bpen      = true;
         textbox.thankyou();
         StartCoroutine(Correct());
     }
     else if ((charfile.charnum == 2) && itemfile.imgnum == 10)
     {
         textbox.hints.text  = "Thank you so so so much! I couldn't bear be without him!!! ";
         itemfile.bteddyBear = true;
         textbox.thankyou();
         StartCoroutine(Correct());
     }
     else if ((charfile.charnum == 3) && itemfile.imgnum == 1)
     {
         textbox.hints.text = "Thanks man! Can't believe he'd run off like that.";
         itemfile.bdog      = true;
         textbox.thankyou();
         StartCoroutine(Correct());
     }
     else if ((charfile.charnum == 4) && itemfile.imgnum == 8)
     {
         textbox.hints.text = "Well i guess you saved me an extra $200, so thanks?";
         itemfile.btextbook = true;
         textbox.thankyou();
         StartCoroutine(Correct());
     }
     else if ((charfile.charnum == 5) && itemfile.imgnum == 6)
     {
         textbox.hints.text = "Thank you, I dont think i'd be able to go home without it!";
         itemfile.bbike     = true;
         textbox.thankyou();
         StartCoroutine(Correct());
     }
     else if ((charfile.charnum == 6) && itemfile.imgnum == 2)
     {
         textbox.hints.text   = "You found them great! I really need those morning jams!";
         itemfile.bheadphones = true;
         textbox.thankyou();
         StartCoroutine(Correct());
     }
     else if ((charfile.charnum == 7) && itemfile.imgnum == 12)
     {
         textbox.hints.text = "Thanks, really i needed my lunch.";
         itemfile.bsandwich = true;
         textbox.thankyou();
         StartCoroutine(Correct());
     }
     else
     {
         textbox.hints.text = "This does not belong to me!";
         textbox.thankyou();
         StartCoroutine(WaitNo());
     }
 }