コード例 #1
0
 private void Awake()
 {
     if (Instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         Instance = this;
     }
 }
コード例 #2
0
 public void OnPointerDown(PointerEventData eventData)
 {
     if (infor.isBuy != true)
     {
         Shop_Mananger.Choice(infor.id);
         Shop_Mananger.Cost = infor.Cost.ToString();
     }
     else
     {
         Shop_Mananger.Choice(infor.id);
         Shop_Mananger.Cost = "USE";
     }
 }