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