Example #1
0
 public void OnEnter()
 {
     ScreenFader.FadeOut();
     GameConductor.FreezePlayer();
     MusicBox.ChangeMusic((int)Song.Final);
     MusicBox.Instance.FadeInTrack(1);
     CreditRoller.RollCredits();
 }
Example #2
0
 public void OnEnter()
 {
     MusicBox.ChangeMusic(Song.Game.ToInt());
     GameConductor.SetShowHud(true);
     time       = 0;
     niceHour   = 11;
     niceMinute = 0;
     SetTime();
 }
Example #3
0
 public void OnEnter()
 {
     GameConductor.CameraStateTrigger("Initialize");
     MusicBox.ChangeMusic(Song.Game.ToInt());
     DataDump.Set("Berries", 0);
     DataDump.Set("BerriesDiscovered", false);
     DataDump.Set("Cookies", 0);
     DataDump.Set("CookiesDiscovered", false);
     DataDump.Set("Fish", 0);
     DataDump.Set("FishDiscovered", false);
     GameConductor.SetShowHud(true);
 }
Example #4
0
 public void OnExit()
 {
     if (GameConductor.IsSleeping)
     {
         MusicBox.ChangeMusic(Song.Intro.ToInt());
         ScreenFader.FadeOut();
         NextState = new IntroState(GameConductor.GetDayCard());
         GameConductor.IsSleeping = false;
     }
     else
     {
         NextState = new OblexState();
     }
 }
Example #5
0
    public void OnEnter()
    {
        player = GameObject.Instantiate(PlayerPrototype);
        player.transform.position = PlayerSpawnLocation;
        Juicer.CreateFx(0, PlayerSpawnLocation);
        Juicer.ShakeCamera(0.5f);
        MusicBox.ChangeMusic((int)Song.Boss);
        DataDump.Set("HP", maxHP);
        DataDump.Set("ScaledHP", 1.0f);
        var cam = GameObject.Find("CinemachineStateCamera/GameCam").GetComponent <CinemachineVirtualCamera>();

        cam.Follow = player.transform;
        cam.LookAt = player.transform;
        GameConductor.SetShowHud(true);
    }
Example #6
0
 public void OnEnter()
 {
     birdSpawner = GameObject.Instantiate(birdSpawner, sd.transform.position + spawnerOffset + Vector3.up * -5, Quaternion.FromToRotation(Vector3.forward, Vector3.left));
     birdSpawner.GetComponent <SmoothTrack>().target = sd.transform;
     birdSpawner.SetActive(false);
     birdTightSpawner = GameObject.Instantiate(birdTightSpawner, sd.transform.position + spawnerOffset + Vector3.up * 5, Quaternion.FromToRotation(Vector3.forward, Vector3.left));
     birdTightSpawner.GetComponent <SmoothTrack>().target = sd.transform;
     birdTightSpawner.SetActive(true);
     birdBomberSpawner = GameObject.Instantiate(birdBomberSpawner, sd.transform.position + spawnerOffset, Quaternion.FromToRotation(Vector3.forward, Vector3.left));
     birdBomberSpawner.GetComponent <SmoothTrack>().target = sd.transform;
     birdBomberSpawner.SetActive(false);
     hpSpawner = GameObject.Instantiate(hpSpawner, sd.transform.position + spawnerOffset + Vector3.up * 5, Quaternion.FromToRotation(Vector3.forward, Vector3.left));
     hpSpawner.GetComponent <SmoothTrack>().target = sd.transform;
     hpSpawner.SetActive(true);
     MusicBox.ChangeMusic(MusicBox.Song.Fly);
 }
Example #7
0
 public void OnEnter()
 {
     DialogueQueue.AddMessage("Oh! There's a minor detail that I forgot to mention in your training...");
     DialogueQueue.AddMessage("There's a party that's very interested in taking that package you're carrying.");
     DataDump.SetInt("BossHP", 750);
     MusicBox.ChangeMusic(MusicBox.Song.Boss);
     //birdSpawner = GameObject.Instantiate(birdSpawner, sd.transform.position + spawnerOffset + Vector3.up * -5, Quaternion.FromToRotation(Vector3.forward, Vector3.left));
     //birdSpawner.GetComponent<SmoothTrack>().target = sd.transform;
     //birdSpawner.SetActive(false);
     //birdTightSpawner = GameObject.Instantiate(birdTightSpawner, sd.transform.position + spawnerOffset + Vector3.up * 5, Quaternion.FromToRotation(Vector3.forward, Vector3.left));
     //birdTightSpawner.GetComponent<SmoothTrack>().target = sd.transform;
     //birdTightSpawner.SetActive(true);
     //birdBomberSpawner = GameObject.Instantiate(birdBomberSpawner, sd.transform.position + spawnerOffset, Quaternion.FromToRotation(Vector3.forward, Vector3.left));
     //birdBomberSpawner.GetComponent<SmoothTrack>().target = sd.transform;
     //birdBomberSpawner.SetActive(false);
     //hpSpawner = GameObject.Instantiate(hpSpawner, sd.transform.position + spawnerOffset + Vector3.up * 5, Quaternion.FromToRotation(Vector3.forward, Vector3.left));
     //hpSpawner.GetComponent<SmoothTrack>().target = sd.transform;
     //hpSpawner.SetActive(true);
 }
Example #8
0
 public void OnEnter()
 {
     DialogueQueue.AddMessage("Dock with the ship to drop off your package.");
     MusicBox.ChangeMusic(MusicBox.Song.Fly);
 }
Example #9
0
 public void OnEnter()
 {
     MusicBox.ChangeMusic((int)Song.Final);
     MusicBox.Instance.FadeInTrack(1);
     CreditRoller.RollCredits();
 }
Example #10
0
 public void OnEnter()
 {
     MusicBox.ChangeMusic(Song.Boss.ToInt());
 }
Example #11
0
 public void OnEnter()
 {
     MusicBox.ChangeMusic((int)Song.Final);
     CreditRoller.RollCredits();
 }
Example #12
0
    public void OnGrowthStageChanged(int newStage)
    {
        Juicer.CreateFx(0, transform.position);
        switch ((GrowthStage)newStage)
        {
        case GrowthStage.Egg:
            ImpulseMover.GoHomeHack();
            PhoenixStage.SetActive(false);
            EggStage.SetActive(true);
            MessageController.AddMessage("ah, an egg..");
            MessageController.AddMessage("i wonder how it likes being poked");
            break;

        case GrowthStage.Hatching:
            StartCoroutine(Hatch());
            break;

        case GrowthStage.Baby:
            EggStage.SetActive(false);
            BabyStage.SetActive(true);
            break;

        case GrowthStage.Juvi:
            MusicBox.ChangeMusic(Song.Boss.ToInt());
            BabyStage.SetActive(false);
            JuviStage.SetActive(true);
            var petType = CalculatePetType();
            switch (petType)
            {
            case PetType.Cute:
                JuviCuteStage.SetActive(true);
                MessageController.AddMessage("aw, it grew into a cute one!");
                break;

            case PetType.Chubby:
                JuviChubbyStage.SetActive(true);
                MessageController.AddMessage("heh, it grew into a chubby one!");
                break;

            case PetType.Tough:
                JuviToughStage.SetActive(true);
                MessageController.AddMessage("oo, it grew into a tough one!");
                break;
            }
            break;

        case GrowthStage.Dead:
            EggStage.SetActive(false);
            BabyStage.SetActive(false);
            JuviStage.SetActive(false);
            JuviCuteStage.SetActive(false);
            JuviChubbyStage.SetActive(false);
            JuviToughStage.SetActive(false);
            DeadStage.SetActive(true);
            break;

        case GrowthStage.Pheonix:
            DeadStage.SetActive(false);
            PhoenixStage.SetActive(true);
            break;
        }
    }
Example #13
0
 public void OnEnter()
 {
     GameConductor.CameraStateTrigger("Initialize");
     MusicBox.ChangeMusic(Song.Game.ToInt());
 }
Example #14
0
 void OnMainMenuStart()
 {
     MusicBox.ChangeMusic((int)Song.Intro);
     MusicBox.PlayAmbience(0);
 }