示例#1
0
 void Awake()
 {
     if (s_inst == null)
     {
         s_inst = this;
     }
     else
     {
         Destroy(s_inst);
         s_inst = this;
     }
 }
示例#2
0
 void Start()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(instance.gameObject);
     }
     else
     {
         DestroyImmediate(this.gameObject);
     }
     if (!isLoadText)
     {
         GetADS();
     }
 }
	void Start () {

        if (instance == null)
        {           
            instance = this;
            DontDestroyOnLoad(instance.gameObject);
        }
        else
        {
            DestroyImmediate(this.gameObject);
        }
        if (!isLoadText)
        {
            GetADS();
        }
	}
示例#4
0
 public void Revive()
 {
     FlurryEventsManager.SendEvent("RV_revive");
     MyAds.ShowRewardedAds();
     _isWaitReward = true;
 }
示例#5
0
 public void OnVideoAdsClicked()
 {
     FlurryEventsManager.SendEvent("RV_strawberries", "start_screen");
     MyAds.ShowRewardedAds();
     _isWaitReward = true;
 }
示例#6
0
 public void BtnTier3()
 {
     FlurryEventsManager.SendEvent("RV_strawberries", "shop");
     MyAds.ShowRewardedAds();
     _isWaitReward = true;
 }