Example #1
0
        protected bool bChange(GameObject srcGO, GameObject destGO)
        {
            if (srcGO == null || !srcGO.Equals(destGO))
            {
                return true;
            }

            return false;
        }
Example #2
0
 /// <summary>
 /// Gets the player session using a UnityEngine.GameObject
 /// </summary>
 /// <param name="go"></param>
 /// <returns></returns>
 public PlayerSession FindSessionByGo(GameObject go)
 {
     var sessions = GameManager.Instance.GetSessions();
     return (from i in sessions where go.Equals(i.Value.WorldPlayerEntity) select i.Value).FirstOrDefault();
 }