PanelCraftSelection.cs 433 B

12345678910111213141516171819202122
  1. using UnityEngine;
  2. using System.Collections;
  3. public class PanelCraftSelection : Panel {
  4. public GameObject shopPanelPrefab;
  5. public void SelectCraft(int craftTypeId)
  6. {
  7. Debuger.Log(craftTypeId);
  8. if(craftTypeId == 3 && !Session.GetInstance().myUserData.IsVIP())
  9. {
  10. Instantiate(shopPanelPrefab);
  11. return;
  12. }
  13. // Session.GetInstance().getBattleSession().GetMessageManager().SelectCraft(craftTypeId);
  14. Close();
  15. }
  16. }