Example #1
0
 public override void Unload()
 {
     SkyManager.Instance["DaCapo:DaCapoSky"].Deactivate();
     config      = null;
     ChairEffect = null;
     SecondBGM   = null;
     SoundLoaded = false;
     Instance    = null;
 }
Example #2
0
        public override void Load()
        {
            Filters.Scene["DaCapo:DaCapoSky"]       = new Filter(new DaCapoSkyScreenShaderData("FilterMiniTower").UseColor(1.0f, 1.0f, 1.0f).UseOpacity(0.0f), EffectPriority.VeryHigh);
            SkyManager.Instance["DaCapo:DaCapoSky"] = new DaCapoSky();

            _CurtainUI          = new CurtainUI();
            _CurtainUIInterface = new UserInterface();
            _CurtainUIInterface.SetState(_CurtainUI);
            On.Terraria.Projectile.Kill += new On.Terraria.Projectile.hook_Kill(KillHook);

            SecondBGM   = new EnvirSound(Instance.GetSound("Sounds/Angela3"), 0.3f);
            SoundLoaded = true;

            ChairEffect = GetEffect("Effects/Content/ChairEffect");
        }