Пример #1
0
 /// <summary>
 /// <see cref="ReportError(string)"/>
 /// Rapporter une erreur avec plus d'informations.
 /// </summary>
 /// <param name="message"></param>
 /// <param name="phase"></param>
 /// <param name="NomCarte"></param>
 /// <param name="autreInformation"></param>
 public void ReportError(string message = "", Player.Phases phase = Player.Phases.INITIATION, string NomCarte = "",
     string autreInformation = "") {
     ReportError(
         "Nom de la carte : " + NomCarte + "\n" +
         "Phase : " + phase.ToString() + "\n" +
         "Message : " + message + "\n" +
         "Autres Informations : " + autreInformation
         );
 }
Пример #2
0
 /// <summary>
 /// Afficher la phase en cours au joueur.
 /// </summary>
 /// <param name="phase"></param>
 public void SetInformation(Player.Phases phase)
 {
     if (GetComponent <TutorialManager>() != null)
     {
         GetComponent <TutorialManager>().SetTutorialInformation(phase);
     }
     else
     {
         GameObject partInstantiated = Instantiate(ParticleSystemNewPhase);
         float      duration         = partInstantiated.GetComponent <ParticleSystem>().main.duration;
         SetInformation(LanguageData.GetString(phase.ToString(), "tutorial"), duration);
         Destroy(partInstantiated, duration);
     }
 }
Пример #3
0
        public void SetTutorialInformation(Player.Phases phase)
        {
            string message = LanguageData.GetString(phase.ToString() + "TUTORIAL", PlayerPrefs.GetString("Language"), "tutorial");

            SetTutorialInformation(message);
        }