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