public override int GetHashCode() { int hash = 1; if (VectorObservationSize != 0) { hash ^= VectorObservationSize.GetHashCode(); } if (NumStackedVectorObservations != 0) { hash ^= NumStackedVectorObservations.GetHashCode(); } hash ^= vectorActionSize_.GetHashCode(); hash ^= cameraResolutions_.GetHashCode(); hash ^= vectorActionDescriptions_.GetHashCode(); if (VectorActionSpaceType != 0) { hash ^= VectorActionSpaceType.GetHashCode(); } if (BrainName.Length != 0) { hash ^= BrainName.GetHashCode(); } if (IsTraining != false) { hash ^= IsTraining.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (BrainName.Length != 0) { hash ^= BrainName.GetHashCode(); } hash ^= lastStates_.GetHashCode(); hash ^= lastActionsContinous_.GetHashCode(); hash ^= lastActionsDiscrete_.GetHashCode(); hash ^= states_.GetHashCode(); if (Reward != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Reward); } hash ^= memories_.GetHashCode(); if (Done != 0) { hash ^= Done.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; hash ^= vectorActionSizeDeprecated_.GetHashCode(); hash ^= vectorActionDescriptionsDeprecated_.GetHashCode(); if (VectorActionSpaceTypeDeprecated != 0) { hash ^= VectorActionSpaceTypeDeprecated.GetHashCode(); } if (BrainName.Length != 0) { hash ^= BrainName.GetHashCode(); } if (IsTraining != false) { hash ^= IsTraining.GetHashCode(); } if (actionSpec_ != null) { hash ^= ActionSpec.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
void CmdSetColor(Color INPUT) { UserNameMesh.color = INPUT; if (isServer) { foreach (var BrainName in FindObjectsOfType <GetUserName>()) { if (BrainName != this) { BrainName.RpcSetColor(BrainName.GetComponentInChildren <TextMesh>().color); } } } }
void CmdSetName(string INPUT) { UserNameMesh.text = INPUT; if (isServer) { foreach (var BrainName in FindObjectsOfType <GetUserName>()) { if (BrainName != this) { BrainName.RpcSetName(BrainName.GetComponentInChildren <TextMesh>().text); } } } }
public override int GetHashCode() { int hash = 1; if (BrainName.Length != 0) { hash ^= BrainName.GetHashCode(); } hash ^= actionsContinous_.GetHashCode(); hash ^= actionsDiscrete_.GetHashCode(); if (ResetNeeded != 0) { hash ^= ResetNeeded.GetHashCode(); } if (IsDone != 0) { hash ^= IsDone.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; hash ^= vectorActionSize_.GetHashCode(); hash ^= vectorActionDescriptions_.GetHashCode(); if (VectorActionSpaceType != global::MLAgents.CommunicatorObjects.SpaceTypeProto.Discrete) { hash ^= VectorActionSpaceType.GetHashCode(); } if (BrainName.Length != 0) { hash ^= BrainName.GetHashCode(); } if (IsTraining != false) { hash ^= IsTraining.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }