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