コード例 #1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
         GameObject.DontDestroyOnLoad(this.gameObject);
     }
     else                 //Destroys unused instances
     {
         GameObject.Destroy(this);
     }
 }
コード例 #2
0
 public void restorePurchasesButton()
 {
     Soomla.Store.WonderRush.MasterControllerStore masterControllerStore = GameObject.Find("MasterControllerStore").GetComponent <Soomla.Store.WonderRush.MasterControllerStore> ();
     masterControllerStore.restorePurchases();
 }
コード例 #3
0
 public void buyButton()
 {
     Soomla.Store.WonderRush.MasterControllerStore masterControllerStore = GameObject.Find("MasterControllerStore").GetComponent <Soomla.Store.WonderRush.MasterControllerStore> ();
     masterControllerStore.buy();
 }