Пример #1
0
    public IEnumerator SetEmotion(Character.Emotion emotion, bool looping = false, float delay = 0.2f)
    {
        yield return(new WaitForSeconds(delay));

        character.SetLooping(looping);
        character.SetEmotion(emotion);
    }
Пример #2
0
 public void RpcSetEmotion(Character.Emotion emotion)
 {
     StartCoroutine(SetEmotion(emotion));
 }