// Notifies that session state has changed. public void NotifySessionStateChanged(ISessionM sessionM, SessionState state) { // Insert your code here //if(state == SessionState.StartedOnline || state == SessionState.StartedOffline) { // UtilScript.Log("SessionM started successfully!"); //} }
private void SetSessionMNative() { if (sessionMNative != null) { return; } //Assign the appropiate Native Class to handle method calls here. #if UNITY_EDITOR sessionMNative = new ISessionM_Dummy(); #elif UNITY_IOS sessionMNative = new ISessionM_iOS(this); #elif UNITY_ANDROID sessionMNative = new ISessionM_Android(this); #else sessionMNative = new ISessionM_Dummy(); #endif }
public void SetNativeParent(ISessionM nativeParent) { this.nativeParent = nativeParent; }
public void NotifyUserInfoChanged(ISessionM sessionM, IDictionary <string, object> info) { // Insert your code here }
public void NotifyActivityAvailable(ISessionM sessionM, ActivityType type) { // Insert your code here // e.g. present activity immediatelly // sessionM.PresentActivity(type); }
public void NotifyActivityUnavailable(ISessionM sessionM, ActivityType type) { // Insert your code here }
public void NotifyActivityDismissed(ISessionM sessionM, ActivityType type) { // Insert your code here // e.g. resume your game // Time.timeScale = 1.0f; }
public void NotifyActivityPresented(ISessionM sessionM, ActivityType type) { // Insert your code here // e.g. suspend your game // Time.timeScale = 0.0f; }
public void NotifySessionError(ISessionM sessionM, int code, string description) { // Insert your code here // UtilScript.Log("SessionM failed with error: " + description); }
/*! Sets the object to use for executing native callback implementations. */ public void SetNativeParent(ISessionM nativeParent) { this.nativeParent = nativeParent; }