Beispiel #1
0
 public void DoSomothing(int index)
 {
     ClearChoices();
     if (index == 0)
     {
         evntPanelScr.SetDesc("You only find some food to gather");
         food = Random.Range(1, 6);
         /**/
         InstanciateReward(golds, food, cannonball, weaponID);
         InstanciateChoice(2, "Close");
     }
     else if (index == 1)
     {
         evntPanelScr.SetDesc("You leave immediatly and continue your journey");
         InstanciateChoice(-1, "Close");
     }
     else if (index == 2)
     {
         evntPanelScr.ClaimReward(golds, food, cannonball, weaponID);
         evntPanelScr.CloseWindow();
     }
     else if (index == -1)
     {
         evntPanelScr.CloseWindow();
     }
 }