void LateUpdate() { // Using late update so that the position values we send are taken after all possible calculations (physics, etc). if (!_instantiated) { if (!_commandSender.isConnected()) { return; } // Initialise the GRETA environment if it hasn't been done before. _commandSender.NotifyCharacter( character, characterHead, characterLeftEye, characterRightEye, characterMouth, characterLeftHand, characterRightHand, characterLeftFoot, characterRightFoot); character.transform.hasChanged = false; _instantiated = true; } else { if (character.transform.hasChanged) { _commandSender.NotifyCharacter( character, characterHead, characterLeftEye, characterRightEye, characterMouth, characterLeftHand, characterRightHand, characterLeftFoot, characterRightFoot); character.transform.hasChanged = false; } } }