Example #1
0
    public void onBuy()
    {
        PetInfo info = IOHelper.GetPetInfoByIdAndLevel((int)type, 1);

        if (info != null)
        {
            UnlockPetDialog.PopUp(info.cost, (int)type, UpdateUI);
        }
    }
Example #2
0
    public void UnlockPet()
    {
//		Debug.Log("aaaaaaaaaaaa");
        PetInfo info = IOHelper.GetPetInfoByIdAndLevel((int)type, 1);

        if (info != null)
        {
            UnlockPetDialog.PopUp(info.cost, (int)type, UpdateUI);
        }
    }