Пример #1
0
 public override void Use()
 {
     Debug.Log("Received UpdatePositionMessage for " + GameObject, GameObject);
     if (GameObject is object)
     {
         NetworkTransform networkTransform = GameObject.GetComponent <NetworkTransform>();
         if (networkTransform is object)
         {
             networkTransform.ReceivedNewPosition(NewPosition, Timestamp);
             networkTransform.ReceivedNewRotation(Rotation, Timestamp);
         }
         else
         {
             Debug.LogWarning("NetworkTransform was not found! " + GameObject, GameObject);
         }
     }
     else
     {
         Debug.LogWarning("Object was not found!");
     }
 }