Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     m_PadMovement = GetComponent <PadMovement>();
     Assert.IsNotNull(m_PadMovement, "m_PadMovement is null");
     if (m_Target == null)
     {
         Debug.LogError("m_Target is null");
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     Assert.IsNotNull(m_InputParser);
     Assert.IsNotNull(m_Target);
     m_Movement = GetComponent <PadMovement>();
     Assert.IsNotNull(m_Movement);
     m_Rewards = GetComponent <AgentRewards>();
     Assert.IsNotNull(m_Rewards);
 }
Exemplo n.º 3
0
        public void Put(int id, [FromBody] PadMovement value)
        {
            Logger.Info("Put " + id);

            if (!clientData.Keys.Contains(id))
            {
                clientData.Add(id, value);
            }
            else
            {
                clientData[id] = value;
            }
        }