public static bool obj_equal(long L, long R) { UnityEngine.SceneManagement.SceneManager left = FCGetObj.GetObj <UnityEngine.SceneManagement.SceneManager>(L); UnityEngine.SceneManagement.SceneManager right = FCGetObj.GetObj <UnityEngine.SceneManagement.SceneManager>(R); if (left != null) { return(left.Equals(right)); } if (right != null) { return(right.Equals(left)); } return(true); }