void GetData()
 {
     purchaseManager = GetComponent <PurchaseManager>();
     data            = Resources.Load <DataShopItem>("Data/DataShopItem");
 }
示例#2
0
 protected void Awake()
 {
     purchaseManager = GameObject.FindObjectOfType <PurchaseManager>();
     data            = Resources.Load <DataShopItem>("Data/DataShopItem");
     GetData();
 }