Ejemplo n.º 1
0
    private void Start()
    {
        if (LocalTest.Testing)
        {
            return;
        }

        _appearingWindow.Open();
        ServerHandler.RegisterOrSignInPlayer(OnResponse_RegisterOrSignInPlayer);
    }
Ejemplo n.º 2
0
 public void Show(HuntInfo info)
 {
     HuntInfo              = info;
     _nameText.text        = info.Name;
     _descriptionText.text = info.Description;
     _rating.ShowRating(info.UserRating);
     _difficulty.ShowDifficulty(info.OfficialDifficulty);
     _rewardText.text = info.RewardCoins.ToString() + " Coins";
     _appearingWindow.Open();
     foreach (var box in _itemBoxes)
     {
         box.Hide();
     }
     //Assuming 4 item rewards maximum
     for (int i = 0; i < info.RewardItems.Count; i++)
     {
         _itemBoxes[i].Show();
         _itemBoxes[i].SetItem(info.RewardItems[i]);
     }
 }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     _appearingWindow.Open();
 }
Ejemplo n.º 4
0
 public void Show()
 {
     _appearingWindow.Open();
     Shown = true;
 }