コード例 #1
0
        void StartShowAnimation()
        {
            LeanTween.cancel(gameObject);
            StopAllCoroutines();

            transform.localScale = Vector3.zero;
            SetCurrentData();
            UpdatePosition();

            gameObject.SetActive(true);

            LeanTween.scale(gameObject, Vector3.one, animationDuration).setEase(animationEase).setOnComplete(() =>
            {
                shown = true;
                ShownEvent?.Invoke(this);
                StartCurrentData();
            });
        }
コード例 #2
0
 private async Task OnAnimationEnd(string id)
 {
     BSModalEvent = new BSModalEvent()
     {
         Target = this
     };
     if (id != MyRef.Id)
     {
         await new BlazorStrapInterop(JSRuntime).RemoveEventAnimationEnd(MyRef);
         if (IsOpen ?? false)
         {
             await ShownEvent.InvokeAsync(BSModalEvent).ConfigureAwait(false);
         }
         else
         {
             await HiddenEvent.InvokeAsync(BSModalEvent).ConfigureAwait(false);
         }
         _canShow = IsOpen ?? false;
         _drawing = false;
         await InvokeAsync(StateHasChanged).ConfigureAwait(false);
     }
 }
コード例 #3
0
 private void CourseView_Shown(object sender, EventArgs e)
 {
     ShownEvent?.Invoke(sender, e);
 }
コード例 #4
0
 private void StudentView_Shown(object sender, EventArgs e)
 {
     ShownEvent?.Invoke(sender, e);
 }
コード例 #5
0
 public virtual void Show()
 {
     gameObject.SetActive(true);
     ShownEvent?.Invoke(this);
 }
コード例 #6
0
ファイル: WindowEx.cs プロジェクト: Milkitic/YobotChart
 remove => RemoveHandler(ShownEvent, value);
コード例 #7
0
ファイル: WindowEx.cs プロジェクト: Milkitic/YobotChart
 add => AddHandler(ShownEvent, value);