void UpdateAgentFacialExpression() { //Get the strongest emotion felt by the RPC that is not the Player var strongestEmotion = _rpcList.Find(x => x.IsPlayer == false).GetStrongestActiveEmotion(); if (_agentBodyController != null && strongestEmotion != null) { _agentBodyController.SetExpression(strongestEmotion.EmotionType, strongestEmotion.Intensity / 10); } }
public void SetExpression(string emotion, float amount) { _body.SetExpression(emotion, amount); }