Пример #1
0
 private static void InvokeScreenLoaded(ScreenLoadedEventArgs e)
 {
     var handler = ScreenLoaded;
     if (handler != null)
     {
         handler(null, e);
     }
 }
Пример #2
0
        private void OnScreenLoaded(object sender, ScreenLoadedEventArgs e)
        {
            int position;
            Enabled = _screenPositions.TryGetValue(e.Screen.GetType(), out position);
            if (Enabled)
            {
               _target = new Vector2(position, 0f);
            }
            else
            {
                _target = Vector2.Zero;
            }

            _currentCameraMoveTime = 0f;
        }