Ejemplo n.º 1
0
    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);
        }
    }
Ejemplo n.º 2
0
 public void SetExpression(string emotion, float amount)
 {
     _body.SetExpression(emotion, amount);
 }