Пример #1
0
    public void ChangeObject()
    {
        if (currentObjectType == 0)
        {
            UIAppelTéléphonique = UICell.GetCurrentCall();
            if (UIAppelTéléphonique != null)
            {
                UIAppelTéléphonique.contentUpdate.AddListener(newContent);
            }
        }

        if (currentObjectType == 1)
        {
            UIFichierActif = UIOrdinateur.GetFichierActif();
            if (UIFichierActif != null)
            {
                UIFichierActif.contentUpdate.AddListener(newContent);
            }
        }

        UpdateHeader();
        currentCategoryTab = 0;
        InstanciateCategoryTab();

        ActivateListener();
    }
Пример #2
0
    public void AppelMari()
    {
        AppelTéléphonique newCall = new AppelTéléphonique("Justine", "Mari");

        personnage.SetMyCall(newCall);

        Cell telephone = personnage.GetCell();

        BulleManager.instance.StartCall(personnage, 10);

        telephone.SayInTelephone("Allo?", "Inconnu");
        telephone.SayInTelephone("Bonjour c'est ta petite choupinette! J'ai une surprise pour toi.", "Justine", 2);
        //telephone.SayInTelephone("Mais voyons mon amour, c’est la 3ième en 1 mois, t’as-tu eu une promotion?", "Inconnu", 4);
        //telephone.SayInTelephone("Non du tout, j’ai juste envie de te gâter et je reçois mon bonus de fin de contrat aujourd’hui", "Justine", 6);
        telephone.SayInTelephone("C’est quoi le cadeau que tu m’achetes?", "Inconnu", 4);
        telephone.SayInTelephone("C’est une surprise", "Justine", 6);
        telephone.SayInTelephone("Allez dit le moi", "Inconnu", 8);
        telephone.SayInTelephone("Non, tu verras ce soir!", "Justine", 10);

        //telephone.SayInTelephone("Un indice allez", "Inconue", 16);
        //telephone.SayInTelephone("Non j’veux pas que tu devines", "Justine", 18);
        //telephone.SayInTelephone("Je vais pas deviner avec un ptit indice", "Inconue", 20);
        //telephone.SayInTelephone("C’est ca que tu as dis la dernière fois aussi", "Justine", 22);
        //telephone.SayInTelephone("Ohhhh t’es plate", "Inconue", 24);
        //telephone.SayInTelephone("Bon raccroche, je dois retourner travailler", "Justine", 26);
        //telephone.SayInTelephone("Pourquoi je raccrocherais? C’est à ton tour", "Inconue", 28);
        //telephone.SayInTelephone("Non raccroche s’il te plait", "Justine", 30);
        //telephone.SayInTelephone("Non toi raccroche", "Inconue", 32);
        //telephone.SayInTelephone("Non toi raccroche", "Justine", 34);

        telephone.EndCall(10);
        ClavierAnimation(20);
        ScenarioManager.instance.Annushka.GetCell().AddCall("Anonyme", "30/02/2017 - 9h30");
    }
Пример #3
0
    public void GetCharacter(Personne personne)
    {
        DisableListener();

        UIPersonne          = personne;
        UICell              = personne.GetCell();
        UIAppelTéléphonique = UICell.GetCurrentCall();
        currentObjectType   = 0;
        currentCategoryTab  = 0;

        ChangeObject();
    }
Пример #4
0
 public void EndCall(float delay)
 {
     if (delay == 0)
     {
         myCall = null;
     }
     else
     {
         DelayManager.CallTo(delegate()
         {
             myCall = null;
         }, delay);
     }
 }
Пример #5
0
 public void SayInTelephone(string messageIn, string parleurIn, float delay = 0)
 {
     if (delay == 0)
     {
         myCall.AddMessage(messageIn, parleurIn);
     }
     else
     {
         AppelTéléphonique tempCall = myCall;
         DelayManager.CallTo(delegate()
         {
             tempCall.AddMessage(messageIn, parleurIn);
         }, delay);
     }
 }
Пример #6
0
    //Appel Samantha (16h50) :
    public void AppelSamantha()
    {
        AppelTéléphonique newCall = new AppelTéléphonique("Enrique", "Samantha");

        personnage.SetMyCall(newCall);

        Cell telephone = personnage.GetCell();

        BulleManager.instance.StartCall(personnage, 10);

        telephone.SayInTelephone("As-tu confirmé le rendez-vous avec M.X ce soir?", "Enrique", 0);
        telephone.SayInTelephone("J’ai pas eu le temps encore, j’men allais faire ça maintenant", "Samantha", 5);
        telephone.SayInTelephone("Là là ! Arrête de remettre ça à plus tard", "Enrique", 8);

        telephone.EndCall(10);

        personnage.GetCell().AddCall("Gary", "30/02/2017 - 16h50");
        ScenarioManager.instance.Samantha.GetCell().AddCall("Enrique", "30/02/2017 - 16h50");
    }
Пример #7
0
    public void phoneCall2()
    {
        AppelTéléphonique newCall = new AppelTéléphonique("Steven", "Anonyme");

        personnage.SetMyCall(newCall);

        Cell telephone = personnage.GetCell();

        BulleManager.instance.StartCall(personnage, 6);

        telephone.SayInTelephone("Oui allo?", "Steven");
        telephone.SayInTelephone("Tout est prêt pour ce soir", "Anonyme", 2);
        telephone.SayInTelephone("Livraison du colis à 18h00.", "Anonyme", 4);
        telephone.SayInTelephone("Parfait merci !", "Steven", 6);

        telephone.EndCall(6);

        personnage.GetCell().AddCall("Anonyme", "30/02/2017 - 13h05");
    }
Пример #8
0
    //Appel avec Gary(16h30) :
    public void AppelGary()
    {
        AppelTéléphonique newCall = new AppelTéléphonique("Enrique", "Gary");

        personnage.SetMyCall(newCall);

        Cell telephone = personnage.GetCell();

        BulleManager.instance.StartCall(personnage, 10);


        telephone.SayInTelephone("T’oublies pas ce que je t’ai demandé pour à soir right?", "Enrique", 0);
        telephone.SayInTelephone("Oui exactement. Merci", "Enrique", 5);
        telephone.SayInTelephone("Oui oui, bon départ Justine ", "Enrique", 8);

        telephone.EndCall(10);

        personnage.GetCell().AddCall("Gary", "30/02/2017 - 16h30");
        ScenarioManager.instance.Gary.GetCell().AddCall("Enrique", "30/02/2017 - 16h30");
    }
Пример #9
0
    public void AppelMari2()
    {
        AppelTéléphonique newCall = new AppelTéléphonique("Justine", "Mari");

        personnage.SetMyCall(newCall);

        Cell telephone = personnage.GetCell();

        BulleManager.instance.StartCall(personnage, 12);

        telephone.SayInTelephone("Allo?", "Justine");
        telephone.SayInTelephone("Salut chérie, je me demandais tu rentrais à quelle heure ce soir?", "Mari", 2);
        telephone.SayInTelephone("Euh je sais pas honnêtement", "Justine", 4);
        telephone.SayInTelephone("Comment ça?", "Mari", 6);
        telephone.SayInTelephone("Bah je crois que Samantha vient de m’avouer que Enrique a organisé un party pour mon départ.", "Justine", 8);
        telephone.SayInTelephone("Amuses-toi bien alors, je t’aime!", "Mari", 10);
        telephone.SayInTelephone("Moi aussi mon petit minou chou d’amour adoré que j’aime plus que tout au monde et de l’univers tout entier", "Justine", 12);

        telephone.EndCall(12);
        ScenarioManager.instance.Annushka.GetCell().AddCall("Anonyme", "30/02/2017 - 15h00");
    }
Пример #10
0
    public void Appel_M_X()
    {
        AppelTéléphonique newCall = new AppelTéléphonique("Samantha", "M.Luis");

        personnage.SetMyCall(newCall);

        Cell telephone = personnage.GetCell();

        BulleManager.instance.StartCall(personnage, 15);

        telephone.SayInTelephone("Oui Allo?", "Samantha");
        telephone.SayInTelephone("Bonjour M.Luis, c'était seulement pour confirmer votre rendez-vous avec notre PDG, ce soir 18h30.", "M.Luis", 4);
        telephone.SayInTelephone("Oui, je serais la à l'heure. C'est bien au 3ieme étage?", "Samantha", 8);
        telephone.SayInTelephone("Oui, 3ième étage.", "M.Luis", 11);
        telephone.SayInTelephone("Parfait.", "Samantha", 13);
        telephone.SayInTelephone("Merci et au plaisir de vous rencontrer", "M.Luis", 15);

        telephone.EndCall(15);
        personnage.GetCell().AddCall("M.Luis", "30/02/2017 - 17h10");
        ScenarioManager.instance.MonsieurX.GetCell().AddCall("Samantha", "30/02/2017 - 17h10");
    }
Пример #11
0
    //Appel de Gary (12h10)
    public void GaryCall()
    {
        AppelTéléphonique newCall = new AppelTéléphonique("Enrique", "Gary");

        personnage.SetMyCall(newCall);

        Cell telephone = personnage.GetCell();

        BulleManager.instance.StartCall(personnage, 15);


        telephone.SayInTelephone("Hey Gary ! Tu sais j’tavais demandé un service pour à soir. Ça tient toujours?", "Enrique", 0);
        telephone.SayInTelephone("Gary ! Jpaye pour ton téléphone, pourquoi tu me réponds par courriel ?", "Enrique", 5);
        telephone.SayInTelephone("Quel suprise party? Ah oui oui, à 18h30 exactement ?", "Enrique", 10);
        telephone.SayInTelephone("Merci Gary, c'est vraiment apprécié ?", "Enrique", 15);

        telephone.EndCall(18);

        personnage.GetCell().AddCall("Gary", "30/02/2017 - 12h50");
        ScenarioManager.instance.Gary.GetCell().AddCall("Enrique", "30/02/2017 - 12h50");
    }
Пример #12
0
    //17h45 à 18h00 : Appel téléphonique sur le fait qu’il ignore l’identité du dirigeant qui vient visiter ce soir. Il aurait aimé ça le savoir pour faire ses recherches et l’impressionner et espérer obtenir un meilleur poste à la direction (PREUVE INNOCENCE)
    public void AppelTel2()
    {
        AppelTéléphonique newCall = new AppelTéléphonique("Stephen", "Anonyme");

        personnage.SetMyCall(newCall);

        Cell telephone = personnage.GetCell();

        BulleManager.instance.StartCall(personnage, 10);

        telephone.SayInTelephone("Oui allo?", "Anonyme");
        telephone.SayInTelephone("C'est Stephen!", "Stephen", 2);
        telephone.SayInTelephone("As-tu réussi à obtenir ce que tu voulais", "Anonyme", 4);
        telephone.SayInTelephone("Non, le geek me demande 1000$ pour son foutu document", "Stephen", 6);
        telephone.SayInTelephone("Donne lui, ça vaut la peine", "Anonyme", 8);
        telephone.SayInTelephone("J’ai pas 1000$ sur moi pis j’ai pas le temps d’aller le retirer avant 18h30…", "Stephen", 10);

        telephone.EndCall(10);

        personnage.GetCell().AddCall("Anonyme", "30/02/2017 - 17h45");
    }
Пример #13
0
    //12h40 à 13h00 : Appel téléphonique sur un numéro anonyme. Il demande des informations sur la réunion de ce soir
    public void AppelTel()
    {
        AppelTéléphonique newCall = new AppelTéléphonique("Stephen", "Anonyme");

        personnage.SetMyCall(newCall);

        Cell telephone = personnage.GetCell();

        BulleManager.instance.StartCall(personnage, 10);

        telephone.SayInTelephone("Oui allo?", "Anonyme");
        telephone.SayInTelephone("Hey c'est Stephen", "Stephen", 2);
        telephone.SayInTelephone("As-tu des informations sur la réunion de ce soir à me fournir?", "Anonyme", 4);
        telephone.SayInTelephone("Je n’ai pas réussi à accéder aux dossiers de ton entreprise. Ils sont trop bien protégés", "Stephen", 6);
        telephone.SayInTelephone("Ça c’est la faute de Gary ! J’vais essayer de m’arranger avec lui.", "Anonyme", 8);
        telephone.SayInTelephone("Fais vite, sinon ton plan va échouer", "Stephen", 10);

        telephone.EndCall(10);

        personnage.GetCell().AddCall("Anonyme", "30/02/2017 - 12h40");
    }
Пример #14
0
    public void phoneCallAnnushka()
    {
        AppelTéléphonique newCall = new AppelTéléphonique("Steven", "Annushka");

        personnage.SetMyCall(newCall);

        Cell telephone = personnage.GetCell();

        BulleManager.instance.StartCall(personnage, 10);

        telephone.SayInTelephone("Oui allo?", "Annushka");
        telephone.SayInTelephone("Salut Annushka, j’ai un service à te demander", "Steven", 2);
        telephone.SayInTelephone("Oui?", "Annushka", 4);
        telephone.SayInTelephone("J’ai besoin que tu ramasses un colis ce soir", "Steven", 6);
        telephone.SayInTelephone("Quelle heure?", "Annushka", 8);
        telephone.SayInTelephone("Je te reviens là-dessus !", "Steven", 10);

        telephone.EndCall(10);

        personnage.GetCell().AddCall("Annushka", "30/02/2017 - 12h40");
        ScenarioManager.instance.Annushka.GetCell().AddCall("Steven", "30/02/2017 - 12h40");
    }
Пример #15
0
    public void AppelAuToilette()
    {
        AppelTéléphonique newCall = new AppelTéléphonique("Annushka", "Anonyme");

        personnage.SetMyCall(newCall);

        Cell telephone = personnage.GetCell();

        BulleManager.instance.StartCall(personnage, 14);

        telephone.SayInTelephone("Oui Allo?", "Annushka");
        telephone.SayInTelephone("Transférez moi à M.Florez", "Anonyme", 2);
        telephone.SayInTelephone("Aucun M.Florez ici", "Annushka", 4);
        telephone.SayInTelephone("M.Florez, il travaille ici !", "Anonyme", 8);
        telephone.SayInTelephone("Non, patron Rodriguez, mais pas Florez.", "Annushka", 10);
        telephone.SayInTelephone("C'est urgent! M.Florez va commettre une grave erreur ce soir", "Anonyme", 12);
        telephone.SayInTelephone("Désolé, mauvais numéro. Aucun M.Florez ici", "Annushka", 14);

        telephone.EndCall(14);

        ScenarioManager.instance.Annushka.GetCell().AddCall("Anonyme", "30/02/2017 - 17h05");
    }
Пример #16
0
    //Telephone
    public void phoneCall1()
    {
        AppelTéléphonique newCall = new AppelTéléphonique("Anonyme", "Steven");

        personnage.SetMyCall(newCall);

        Cell telephone = personnage.GetCell();

        BulleManager.instance.StartCall(personnage, 14);


        telephone.SayInTelephone("Oui, ici Steven", "Steven", 0);
        telephone.SayInTelephone("Toujours bon pour ce soir?", "Anonyme", 2);
        telephone.SayInTelephone("Oui", "Steven", 4);
        telephone.SayInTelephone("Aucun changement?", "Anonyme", 6);
        telephone.SayInTelephone("Non", "Steven", 8);
        telephone.SayInTelephone("Vous devez nous contactez-nous en cas d'imprévu", "Anonyme", 10);
        telephone.SayInTelephone("Je comprends", "Steven", 12);
        telephone.SayInTelephone("En espérant qu'elle ne se doute de rien", "Anonyme", 14);

        telephone.EndCall(14);

        personnage.GetCell().AddCall("Anonyme", "30/02/2017 - 8h30");
    }
Пример #17
0
 public void SetMyCall(AppelTéléphonique myCall)
 {
     myCell.SetMyCall(myCall);
 }
Пример #18
0
 public void SetMyCall(AppelTéléphonique myCall)
 {
     this.myCall = myCall;
     contentUpdate.Invoke();
 }
Пример #19
0
 public Cell(List <SMS> historiqueTextos, List <Call> historiqueAppels)
 {
     myCall = null;
     this.historiqueAppels = historiqueAppels;
     this.historiqueTextos = historiqueTextos;
 }
Пример #20
0
 public Cell()
 {
     myCall = null;
 }