protected virtual void Awake() { Gold = new Property <int>(); Corn = new Property <int>(); Gas = new Property <int>(); GlobalModel.Connect(); }
private void Awake() { this.Score = new Property <int>(); this.MissileAmmo = new Property <int>(); playerController.Died += Player_Died; playerController.weaponController.MissileAmmoChanged += Player_MissileAmmoChanged; GlobalModel.Connect(); }
private void Awake() { interstitialAd = new InterstitialAd(adUnitId); interstitialAd.OnAdLoaded += InterstitialAd_Loaded; interstitialAd.OnAdFailedToLoad += InterstitialAd_FailedToLoad; interstitialAd.OnAdOpening += InterstitialAd_Opened; interstitialAd.OnAdClosed += InterstitialAd_Closed; interstitialAd.OnAdLeavingApplication += InterstitialAd_LeftApplication; videoAd = new InterstitialAd(videoAdId); videoAd.OnAdLoaded += AdMob_VideoAdLoaded; SubscribeToEvent(); /* TODO * View should not have access to Global Model. * Create a ViewModel for this view and move Global Model access there. */ GlobalModel.Connect(); }
private void Awake() { GlobalModel.Connect(); }