void ISyncDelegateInitializer.Initialize(SkillzSyncDelegate syncDelegate) { using (var skillzSync = GetSkillzSync()) { skillzSync.CallStatic("registerSyncDelegate", new SkillzSyncProxy(syncDelegate), GetCurrentActivity()); } }
public static void InitializeSyncDelegate(SkillzSyncDelegate messageHandler) { SkillzSyncProxy skillzSyncProxy = new SkillzSyncProxy(); registerSyncDelegate(skillzSyncProxy); _syncMessageHandler = messageHandler; }
public static void AssignSkillzDelegate(SkillzSyncDelegate skillzSyncDelegate) { _syncDelegate = skillzSyncDelegate; #if UNITY_ANDROID Skillz.InitializeSyncDelegate(skillzSyncDelegate); #elif UNITY_IOS SkillzSDK.Api.InitializeSyncDelegate(skillzSyncDelegate); #endif }
public static void LaunchSkillz(SkillzSyncDelegate _syncMatchDelegate) { SkillzDelegate.AssignSkillzDelegate(_syncMatchDelegate); #if UNITY_ANDROID Skillz.Launch(); #elif UNITY_IOS SkillzSDK.Api.LaunchSkillz(); #endif }
void ISyncDelegateInitializer.Initialize(SkillzSyncDelegate syncDelegate) { }
public static void SetSyncDelegate(SkillzSyncDelegate skillzSyncDelegate) { syncDelegate = skillzSyncDelegate; SyncDelegateInitializer.Initialize(skillzSyncDelegate); }
public SkillzSyncProxy(SkillzSyncDelegate syncDelegate) : base("com.skillz.SkillzSync$UnitySyncDelegate") { _syncDelegate = syncDelegate; }
public static void Initialize(SkillzSyncDelegate syncDelegate) { _syncDelegate = syncDelegate; AssignSyncDelegateFunctions(); }
void ISyncDelegateInitializer.Initialize(SkillzSyncDelegate syncDelegate) { SkillzSyncProxy.Initialize(syncDelegate); }
public static void LaunchSkillz(SkillzSyncDelegate _syncMatchDelegate) { SkillzState.SetSyncDelegate(_syncMatchDelegate); BridgedAPI.LaunchSkillz(); }
/// <summary> /// You should call this method with an instance of a class implementing SkillzSyncDelegate that will handle receiving messages and variables. /// </summary> /// <param name="messageHandler">Message handler.</param> public static void InitializeSyncDelegate(SkillzSyncDelegate messageHandler) { Debug.LogWarning("Initialize Sync Delegate"); _syncMessageHandler = messageHandler; AssignSyncDelegateFunctions(); }