示例#1
0
        public void OnIntroanimationEnded()
        {
            mainmenuController.enabled = true;

            if (RpgManager.GetKey(SaveKey.defeatedCerberus) == 1)
            {
                cheatPanel.SetActive(true);
            }
        }
示例#2
0
        protected override IEnumerator Start()
        {
            yield return(StartCoroutine(base.Start()));

            orion.gameObject.SetActive(RpgManager.GetKey(SaveKey.metOrion) != 1);

            player.attackEnabled = RpgManager.GetKey(SaveKey.metOrion) == 1;

            if (RpgManager.GetKey(SaveKey.metAltea) == 1)
            {
                blackVeil.SetActive(false);
            }
            else
            {
                snakeToHide.SetActive(false);
                player.movementEnabled = false;
                ItsTooDark_1();
            }
        }
        protected override IEnumerator InitializeScene(bool waitFrame)
        {
            if (waitFrame)
            {
                yield return(new WaitForEndOfFrame());
            }

            player.attackEnabled = false;

            computer.active = (RpgManager.GetKey(SaveKey.facebookDone) != 1);
            entrance.active = (RpgManager.GetKey(SaveKey.facebookDone) == 1);

            if (RpgManager.GetKey(SaveKey.facebookDone) == 0)
            {
                yield return(StartCoroutine(Beginning()));
            }
            else if (RpgManager.GetKey(SaveKey.facebookDone) == 1)
            {
                AudioSource audioSource = GetComponent <AudioSource>();
                audioSource.clip   = musicAfterFb;
                audioSource.volume = 1.0f;
                audioSource.Play();
            }
        }
示例#4
0
        protected override IEnumerator InitializeScene(bool waitFrame)
        {
            if (waitFrame)
            {
                yield return(new WaitForEndOfFrame());
            }

            player.attackEnabled = RpgManager.GetKey(SaveKey.metOrion) == 1;

            papaBullEvent.isDialogue = (RpgManager.GetKey(SaveKey.metOrion) != 1);
            snakeBefore.gameObject.SetActive(RpgManager.GetKey(SaveKey.metAltea) != 1 &&
                                             RpgManager.GetKey(SaveKey.seenBull) == 0 && RpgManager.GetKey(SaveKey.seenSnake) == 0);
            snakeAfter.gameObject.SetActive(RpgManager.GetKey(SaveKey.metAltea) != 1 &&
                                            RpgManager.GetKey(SaveKey.seenBull) == 1 && RpgManager.GetKey(SaveKey.seenSnake) != 1);

            altea.gameObject.SetActive(RpgManager.GetKey(SaveKey.metAltea) != 1);

            entreeMontgeron.gameObject.SetActive(RpgManager.GetKey(SaveKey.seenMontgeron) != 1);

            maisonMontgeron.gameObject.SetActive(RpgManager.GetKey(SaveKey.seenMontgeron) != 1);
            teleporterMontgeron.gameObject.SetActive(RpgManager.GetKey(SaveKey.seenMontgeron) == 1);

            papaBullCreature.gameObject.SetActive(RpgManager.GetKey(SaveKey.seenMontgeron) != 1);
        }
示例#5
0
        private void Awake()
        {
            papaBullEvent.onEndInteraction += () => {
                if (RpgManager.GetKey(SaveKey.seenBull) != 1)
                {
                    RpgManager.SetKey(SaveKey.seenBull, 1);
                    snakeBefore.gameObject.SetActive(false);
                    bool b = RpgManager.GetKey(SaveKey.seenSnake) != 1 && RpgManager.GetKey(SaveKey.metAltea) == 0;
                    snakeAfter.gameObject.SetActive(b);
                }
            };

            snakeBefore.onEndInteraction += () => {
                RpgManager.SetKey(SaveKey.seenSnake, -1);
                snakeBefore.gameObject.SetActive(false);
                snakeAfter.gameObject.SetActive(false);
            };
            snakeAfter.onEndInteraction += () => {
                RpgManager.SetKey(SaveKey.seenSnake, 1);
                snakeBefore.gameObject.SetActive(false);
                snakeAfter.gameObject.SetActive(false);
            };

            entreeMontgeron.onEndInteraction += () => {
                RpgManager.SetKey(SaveKey.seenMontgeron, 1);
                entreeMontgeron.gameObject.SetActive(false);
                papaBullCreature.gameObject.SetActive(false);
                RpgManager.SaveGame("Montgeron");
            };

            maisonMontgeron.onEndInteraction += () => {
                RpgManager.SetKey(SaveKey.seenHouse, 1);
                maisonMontgeron.gameObject.SetActive(false);
                teleporterMontgeron.gameObject.SetActive(true);
            };
        }
示例#6
0
        protected override IEnumerator Start()
        {
            yield return(StartCoroutine(base.Start()));

            player.attackEnabled = false;

            if (RpgManager.GetKey(SaveKey.defeatedCerberus) == 0)
            {
                yield return(StartCoroutine(FindMaxime()));
            }
            else if (RpgManager.GetKey(SaveKey.defeatedCerberus) == -1)
            {
                if (playerMovable == null)
                {
                    playerMovable = player.gameObject.GetComponent <MovableEntity>();
                }
                if (playerMovable == null)
                {
                    playerMovable = player.gameObject.AddComponent <MovableEntity>();
                }

                maximeMovable.transform.position = maxPosition;
                alteaMovable.transform.position  = (catsPosition - Vector3.right);
                orionMovable.transform.position  = (catsPosition + Vector3.right);
                luckyMovable.transform.position  = morganePos1 + Vector3.down * 2;
                player.transform.position        = morganePos1;

                player.overrideMovement = true;
                audioSource.clip        = bossMusic;
                audioSource.Play();
                yield return(new WaitForSeconds(1.0f));

                TransitionBattle trbattle = TransitionBattle.Instance;
                trbattle.onClosureFinished = () => { SceneManager.LoadScene("PokemonBattle", LoadSceneMode.Additive); };
                trbattle.StartSpiralCoroutine();
            }
            else if (RpgManager.GetKey(SaveKey.defeatedCerberus) == -2)
            {
                if (playerMovable == null)
                {
                    playerMovable = player.gameObject.GetComponent <MovableEntity>();
                }
                if (playerMovable == null)
                {
                    playerMovable = player.gameObject.AddComponent <MovableEntity>();
                }

                maximeMovable.transform.position = maxPosition;
                alteaMovable.transform.position  = (catsPosition - Vector3.right);
                orionMovable.transform.position  = (catsPosition + Vector3.right);
                luckyMovable.transform.position  = morganePos1 + Vector3.down * 2;
                player.transform.position        = morganePos1;

                player.overrideMovement = true;
                audioSource.Stop();

                yield return(EndPokemonCoroutine());
            }
            else if (RpgManager.GetKey(SaveKey.defeatedCerberus) == 1)
            {
                cerberusMovable.gameObject.SetActive(false);
                alteaMovable.Sleep();
                alteaMovable.Hit();

                StartCoroutine(OrionRoamCoroutine());
            }
        }