Exemple #1
0
 private void Awake()
 {
     if (Instance != null)
     {
         Destroy(this);
         return;
     }
     else
     {
         Instance = this;
         DontDestroyOnLoad(this);
     }
 }
Exemple #2
0
 public static void uninitConfig(Juicy.JuicyGame game)
 {
     config.uninit(game);
 }
Exemple #3
0
 private void uninit(Juicy.JuicyGame game)
 {
 }
Exemple #4
0
 public static void initConfig(Juicy.JuicyGame game)
 {
     config = new GameConfig(game);
 }
Exemple #5
0
 private GameConfig(Juicy.JuicyGame game)
 {
     menuFont = game.Content.Load<SpriteFont>("menuText");
     scoreFont = game.Content.Load<SpriteFont>("scoreText");
 }
Exemple #6
0
 private void giftAnimationEnded(FrameAnimator animator, Juicy.AnimationSequence.AnimationStatus status)
 {
     animator.GO.MarkForDelete = true;
 }
Exemple #7
0
 private void explodeAnimationEnded(FrameAnimator animator, Juicy.AnimationSequence.AnimationStatus status)
 {
     animator.GO.MarkForDelete = true;
     explosionsRequired--;
     if (explosionsRequired == 0)
     {
         gameOverObj.Visible = true;
     }
 }
Exemple #8
0
 private void balloonBurstAnimationEnded(FrameAnimator animator, Juicy.AnimationSequence.AnimationStatus status)
 {
     if (animator.GO.MarkForDelete)
     {
         animator.GO.MarkForDelete = true;
     }
     else
     {
         animator.GO.MarkForDelete = true;
         BalloonCount--;
     }
 }