Exemple #1
0
 private void Update()
 {
     if (screenSize.x != Screen.width || screenSize.y != Screen.height)
     {
         screenSize.Set(Screen.width, Screen.height);
         Events.Dispatch(ScreenEvents.Resize, new ScreenEventData {
             Width = Screen.width, Height = Screen.height
         });
     }
 }