void Update() { if (Frame.Contains(transform.GetRelativeScreenPos(Camera.main))) { OnAppear.AttemptCall(); } else { OnDisappeared.AttemptCall(); } }
public async Task JsOnDisappeared() { IsVisible = false; await OnDisappeared.InvokeAsync(); }