コード例 #1
0
ファイル: GameHelper.cs プロジェクト: zjxjr/monodroid-samples
 public GameHelper(Activity activity)
 {
     this.activity         = activity;
     this.GravityForPopups = GravityFlags.Bottom | GravityFlags.Center;
     achievmentsCallback   = new AchievementsCallback(this);
     leaderboardsCallback  = new LeaderBoardsCallback(this);
 }
コード例 #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;
        }
コード例 #3
0
ファイル: GameHelper.Android.cs プロジェクト: prepare/Sitana
        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;
        }
コード例 #4
0
		public GameHelper (Activity activity)
		{
			this.activity = activity;
			this.GravityForPopups = GravityFlags.Bottom | GravityFlags.Center;
			achievmentsCallback = new AchievementsCallback (this);
			leaderboardsCallback = new LeaderBoardsCallback (this);

		}