Exemplo n.º 1
0
        protected virtual void Awake()
        {
            Gold = new Property <int>();
            Corn = new Property <int>();
            Gas  = new Property <int>();

            GlobalModel.Connect();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 4
0
 private void Awake()
 {
     GlobalModel.Connect();
 }