/// <summary>
 /// Use to init a score API.
 /// </summary>
 /// <param name="desc">Score Desc.</param>
 public static void Init(ScoreDesc desc, CreatedScoreAPICallbackMethod callback)
 {
     ScoreManager.createdCallback = callback;
     ReignServices.CheckStatus();
     plugin            = ScorePluginAPI.New(desc, async_CreatedCallback);
     ScoreManager.desc = desc;
     ReignServices.AddService(update, null, null);
 }
Exemplo n.º 2
0
		/// <summary>
		/// Use to init a score API.
		/// </summary>
		/// <param name="desc">Score Desc.</param>
		public static void Init(ScoreDesc desc, CreatedScoreAPICallbackMethod callback)
		{
			ScoreManager.createdCallback = callback;
			ReignServices.CheckStatus();
			plugin = ScorePluginAPI.New(desc, async_CreatedCallback);
			ScoreManager.desc = desc;
			ReignServices.AddService(update, null, null);
		}
Exemplo n.º 3
0
        public void Init(IScorePlugin plugin)
        {
            // set defaults
            this.plugin = plugin;
            mode        = ReignScores_UnityUIModes.None;
            fitImageInView(ScoresImage);
            fitImageInView(AchievementsImage);

            // bind buttons
            LoginScreen_LoginButton.onClick.AddListener(LoginScreen_LoginButton_Clicked);
            LoginScreen_CreateUserButton.onClick.AddListener(LoginScreen_CreateUserButton_Clicked);
            LoginScreen_CancelButton.onClick.AddListener(LoginScreen_CancelButton_Clicked);

            CreateUserScreen_CreateButton.onClick.AddListener(CreateUserScreen_CreateButton_Clicked);
            CreateUserScreen_CancleButton.onClick.AddListener(CreateUserScreen_CancleButton_Clicked);

            Scores_NextButton.onClick.AddListener(Scores_NextButton_Clicked);
            Scores_PrevButton.onClick.AddListener(Scores_PrevButton_Clicked);
            Scores_CloseButton.onClick.AddListener(Scores_CloseButton_Clicked);
            Achievements_NextButton.onClick.AddListener(Achievements_NextButton_Clicked);
            Achievements_PrevButton.onClick.AddListener(Achievements_PrevButton_Clicked);
            Achievements_CloseButton.onClick.AddListener(Achievements_CloseButton_Clicked);
        }
Exemplo n.º 4
0
 public void Init(IScorePlugin plugin)
 {
     this.plugin = plugin;
 }
		public void Init(IScorePlugin plugin)
		{
			// set defaults
			this.plugin = plugin;
			mode = ReignScores_UnityUIModes.None;
			fitImageInView(ScoresImage);
			fitImageInView(AchievementsImage);

			// bind buttons
			LoginScreen_LoginButton.onClick.AddListener(LoginScreen_LoginButton_Clicked);
			LoginScreen_CreateUserButton.onClick.AddListener(LoginScreen_CreateUserButton_Clicked);
			LoginScreen_CancelButton.onClick.AddListener(LoginScreen_CancelButton_Clicked);

			CreateUserScreen_CreateButton.onClick.AddListener(CreateUserScreen_CreateButton_Clicked);
			CreateUserScreen_CancleButton.onClick.AddListener(CreateUserScreen_CancleButton_Clicked);

			Scores_NextButton.onClick.AddListener(Scores_NextButton_Clicked);
			Scores_PrevButton.onClick.AddListener(Scores_PrevButton_Clicked);
			Scores_CloseButton.onClick.AddListener(Scores_CloseButton_Clicked);
			Achievements_NextButton.onClick.AddListener(Achievements_NextButton_Clicked);
			Achievements_PrevButton.onClick.AddListener(Achievements_PrevButton_Clicked);
			Achievements_CloseButton.onClick.AddListener(Achievements_CloseButton_Clicked);
		}
		public void Init(IScorePlugin plugin)
		{
			this.plugin = plugin;
		}