1 using System.Collections.Generic;
17 public override int Compare(PhotonPlayer x, PhotonPlayer y) {
34 return x.gameObject.name.CompareTo(y.gameObject.name);
45 return x.gameObject.name.CompareTo(y.gameObject.name);
63 public static Dictionary<string, MethodInfo>
methodInfoByName =
new Dictionary<string, MethodInfo>();
66 Type type = typeof(TrueSyncManagedBehaviour);
67 methodInfoByName[
"TrueSyncManagedBehaviour.OnSyncedStart"] = type.GetMethod(
"OnSyncedStart");
68 methodInfoByName[
"TrueSyncManagedBehaviour.OnGamePaused"] = type.GetMethod(
"OnGamePaused");
69 methodInfoByName[
"TrueSyncManagedBehaviour.OnGameUnPaused"] = type.GetMethod(
"OnGameUnPaused");
70 methodInfoByName[
"TrueSyncManagedBehaviour.OnGameEnded"] = type.GetMethod(
"OnGameEnded");
71 methodInfoByName[
"TrueSyncManagedBehaviour.OnPlayerDisconnection"] = type.GetMethod(
"OnPlayerDisconnection");
Provides a few utilities to be used on TrueSync exposed classes.
static Dictionary< string, MethodInfo > methodInfoByName
A few MethodInfo dictionary to allow reusable method calls.
static PlayerComparer playerComparer
Instance of a PlayerComparer.
Comparer class to guarantee PhotonPlayer order.
Abstract collider for 3D shapes.
static TSBody2DComparer body2DComparer
Instance of a TSBody2DComparer.
Comparer class to guarantee TSCollider order.
Comparer class to guarantee TSCollider2D order.
static TSBodyComparer bodyComparer
Instance of a TSBodyComparer.
Abstract collider for 2D shapes.