public ExpressionsHUDController()
 {
     view = ExpressionsHUDView.Create();
     view.Initialize(ExpressionCalled);
     userProfileUpdateDelegate = profile => view.UpdateAvatarSprite(profile.faceSnapshot);
     userProfileUpdateDelegate.Invoke(ownUserProfile);
     ownUserProfile.OnUpdate += userProfileUpdateDelegate;
     ownUserProfile.OnAvatarExpressionSet += OnAvatarExpressionSet;
 }
Ejemplo n.º 2
0
 public void BeInitializedProperly()
 {
     view.content.gameObject.SetActive(true);
     view.Initialize(null);
     Assert.IsFalse(view.content.gameObject.activeSelf);
 }