コード例 #1
0
ファイル: UnityInput.cs プロジェクト: miyosuda/animalai
 public void MergeFrom(UnityInput other)
 {
     if (other == null)
     {
         return;
     }
     if (other.rlInput_ != null)
     {
         if (rlInput_ == null)
         {
             RlInput = new global::MLAgents.CommunicatorObjects.UnityRLInput();
         }
         RlInput.MergeFrom(other.RlInput);
     }
     if (other.rlInitializationInput_ != null)
     {
         if (rlInitializationInput_ == null)
         {
             RlInitializationInput = new global::MLAgents.CommunicatorObjects.UnityRLInitializationInput();
         }
         RlInitializationInput.MergeFrom(other.RlInitializationInput);
     }
     if (other.rlResetInput_ != null)
     {
         if (rlResetInput_ == null)
         {
             RlResetInput = new global::MLAgents.CommunicatorObjects.UnityRLResetInput();
         }
         RlResetInput.MergeFrom(other.RlResetInput);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }