Esempio n. 1
0
    void OnTriggerEnter2D(Collider2D col)
    {
        if (col.tag == "Player")
        {
            PlayerState playerState = col.gameObject.GetComponent <PlayerState>();
            if (playerState)
            {
                playerState.setRoom(associatedRoom);
            }

            if (playerState.currentRoom == PlayerState.EnumRooms.Concert)
            {
                TelephoneBehaviour.SetMessageVisible(false);
            }
            else
            {
                TelephoneBehaviour.SetMessageVisible(true);
            }

            AmbianceMusic ambianceMusicComponent = col.gameObject.GetComponent <AmbianceMusic>();
            if (ambianceMusicComponent)
            {
                ambianceMusicComponent.isFilter = isFilterValue;
            }
        }
    }
Esempio n. 2
0
    void SetTelephoneTextDependingOnBombeState()
    {
        if (bombeState == 0)
        {
            bombeState++;
        }


        switch (bombeState)
        {
        case 1:
            TelephoneBehaviour.SetDialogText("La mission d’infiltration se passe mal ! J’ai appris qu’il y avait une bombe dans la salle !! Je ne sais pas s’ils l’ont remarquée, il n’y a pas de signe de panique mais pourtant ils agissent tous trop bizarrement! ");
            TelephoneBehaviour.instance.setDialogVisibility(true);
            TelephoneBehaviour.SetTelephoneText("Bonjour Agent 118 218, calmez vous, essayez de trouver la bombe", false);
            break;

        case 2:
            /*
             * TelephoneBehaviour.SetDialogText("Il y a une sorte d’énigme incompréhensible sur la bombe, c’est un damier avec des chiffres.");
             * TelephoneBehaviour.instance.setDialogVisibility(true);
             * TelephoneBehaviour.SetTelephoneText("Oh mon dieu !! Vous êtes tombé sur la nouvelle génération Willi Waller 2016. Vous devez absolument résoudre cette énigme pour désamorcer la bombe. Surtout ne tentez rien d’autre.", isInConcert());
             */
            break;

        case 3:
            // TelephoneBehaviour.SetTelephoneText("", isInConcert());
            break;
        }
    }
Esempio n. 3
0
    // Use this for initialization
    void Start()
    {
        instance      = this;
        telephone     = GameObject.Find("PhoneEcran");
        telephoneText = GameObject.Find("PhoneMessage");

        bulle     = GameObject.Find("BulleDialog");
        bulleText = GameObject.Find("BulleMessage");
        bulleHero = GameObject.Find("Hero");

        telephoneMoving  = false;
        telephoneVisible = false;

        dialogHeroVisible = true;
        toogleDialogVisibility();
    }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     TelephoneBehaviour.SetTelephoneText("Cher agent, je reste en contact avec vous par messages.", false);
 }