private void Awake() { if (Instance != null) { Destroy(gameObject); } else { Instance = this; } }
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"; } }