public override bool Equals(object tgt) { if (tgt == null) { return(false); } FlowNode_OnUrlSchemeLaunch.LINEParam lineParam = tgt as FlowNode_OnUrlSchemeLaunch.LINEParam; return(lineParam != null && this.type == lineParam.type && (FlowNode_OnUrlSchemeLaunch.IsEqual(this.iname, lineParam.iname) && FlowNode_OnUrlSchemeLaunch.IsEqual(this.creatorFUID, lineParam.creatorFUID)) && this.roomid == lineParam.roomid); }
private bool UpdatePendingParam() { string paramString = MonoSingleton <UrlScheme> .Instance.ParamString; if (string.IsNullOrEmpty(paramString)) { return(false); } MonoSingleton <UrlScheme> .Instance.ParamString = (string)null; DebugUtility.Log("OnUrlSchemeLaunch:" + paramString); FlowNode_OnUrlSchemeLaunch.LINEParam lineParam = this.Analyze(paramString); if (lineParam == null) { return(false); } if (FlowNode_OnUrlSchemeLaunch.LINEParam_decided != null && FlowNode_OnUrlSchemeLaunch.LINEParam_decided.Equals((object)lineParam)) { DebugUtility.Log("Checking param is same..."); MyPhoton instance = PunMonoSingleton <MyPhoton> .Instance; if (instance.CurrentState == MyPhoton.MyState.ROOM) { DebugUtility.Log("in room."); MyPhoton.MyRoom currentRoom = instance.GetCurrentRoom(); JSON_MyPhotonRoomParam myPhotonRoomParam = currentRoom != null?JSON_MyPhotonRoomParam.Parse(currentRoom.json) : (JSON_MyPhotonRoomParam)null; if (myPhotonRoomParam.isLINE == 0) { DebugUtility.Log("not LINE."); } else if (!FlowNode_OnUrlSchemeLaunch.IsEqual(myPhotonRoomParam.iname, lineParam.iname)) { DebugUtility.Log("iname is not match."); } else if (!FlowNode_OnUrlSchemeLaunch.IsEqual(myPhotonRoomParam.creatorFUID, lineParam.creatorFUID)) { DebugUtility.Log("creatorFUID is not match."); } else if ((JSON_MyPhotonRoomParam.EType)myPhotonRoomParam.type != lineParam.type) { DebugUtility.Log("type is not match."); } else { DebugUtility.Log("UrlScheme MultiPlayLINE start skip. same param."); return(false); } } } DebugUtility.Log("UrlScheme MultiPlayLINE start get pending." + (object)(lineParam != null)); FlowNode_OnUrlSchemeLaunch.LINEParam_Pending = lineParam; return(true); }