Esempio n. 1
0
 public GameHelper(Activity activity)
 {
     this.activity         = activity;
     this.GravityForPopups = GravityFlags.Bottom | GravityFlags.Center;
     achievmentsCallback   = new AchievementsCallback(this);
     leaderboardsCallback  = new LeaderBoardsCallback(this);
 }
Esempio n. 2
0
        public GooglePlayGameHelper(Activity activity, WaveEngine.Adapter.Adapter adapter)
        {
            this.adapter          = adapter;
            this.activity         = activity;
            this.GravityForPopups = GravityFlags.Bottom | GravityFlags.Center;
            achievmentsCallback   = new AchievementsCallback(this);
            leaderboardsCallback  = new LeaderBoardsCallback(this);

            this.adapter.OnActivityResult += this.OnGooglePlayPanelActivityResult;
        }
        public void Enable(AchievementInfoDelegate achievementInfo, LeaderboardDelegate leaderboardInfo)
        {
            _achievementsCallback = new AchievementsCallback(achievementInfo);
            _leaderboardCallback  = new LeaderboardCallback(leaderboardInfo);

            if (GamerPlatformSettings.Instance.ShouldBeSignedIn)
            {
                CreateClient();
            }
        }
Esempio n. 4
0
        public GameHelper(Activity activity)
        {
            if (Current != null)
            {
                throw new Exception("GameHelper already created!");
            }

            this.activity         = activity;
            this.GravityForPopups = GravityFlags.Bottom | GravityFlags.Center;
            achievmentsCallback   = new AchievementsCallback(this);
            leaderboardsCallback  = new LeaderBoardsCallback(this);

            Current = this;
        }
Esempio n. 5
0
		public GameHelper (Activity activity)
		{
			this.activity = activity;
			this.GravityForPopups = GravityFlags.Bottom | GravityFlags.Center;
			achievmentsCallback = new AchievementsCallback (this);
			leaderboardsCallback = new LeaderBoardsCallback (this);

		}