Exemple #1
0
        private void StateManager_OnStateFinished(object sender, MapStateManagerEventArgs e)
        {
            // Aloitetaan collisionin kuuntelu ja alustetaan rectangle staten koon mukaan.

            Enabled = true;

            int width = JamGame.Game.Instance.ScreenWidth / 10;
            int height = JamGame.Game.Instance.ScreenHeight;

            collisionRectangle = new Rectangle(JamGame.Game.Instance.ScreenWidth - width, 0, width, height);
        }
Exemple #2
0
 private void StateManager_OnTransitionStart(object sender, MapStateManagerEventArgs e)
 {
     directionalArrow.Enabled = false;
 }
Exemple #3
0
 private void StateManager_OnStateFinished(object sender, MapStateManagerEventArgs e)
 {
     directionalArrow.Enabled = true;
 }