Ejemplo n.º 1
0
 /// <summary>
 /// Récupère les Game Objects nécessaire à l'initialisation
 /// </summary>
 void Start()
 {
     calculer               = gameObject.GetComponentInChildren <Button>();
     scriptMatriceSEL       = PnlSel.GetComponent <MatriceControleur>();
     scriptRésultatGauche   = PnlMatriceRésultat.GetComponent <ResultatControleurMatrice>();
     scriptRésultatU        = PnlMatriceURésultat.GetComponent <ResultatControleurMatrice>();
     scriptRésultatÉquation = PnlÉquationRésultat.GetComponent <RésultatControleurÉquation>();
     listeOpérations        = gameObject.GetComponentInChildren <Dropdown>();
     IdentifierOpérationActive();
 }
    /// <summary>
    /// S'occupe de récolter les Game Objects dans Unity
    /// </summary>
    void Start()
    {
        calculer       = gameObject.GetComponentInChildren <Button>();
        listOpérations = gameObject.GetComponentInChildren <Dropdown>();

        scriptMatriceGauche = EditeurMatriceGauche.GetComponent <MatriceControleur>();
        scriptMatriceDroite = EditeurMatriceDroite.GetComponent <MatriceControleur>();
        scriptScalaire      = EditeurScalaire.GetComponent <ScalaireControleur>();

        scriptResultatMatrice     = ZoneResultatMatricielle.GetComponent <ResultatControleurMatrice>();
        scriptResultatDéterminant = ZoneRésultatDéterminant.GetComponent <RésultatControleurScalaire>();

        scriptGradateurLigneGauche   = scriptMatriceGauche.CtrlLignes.GetComponent <GradateurControleur>();
        scriptGradateurColonneGauche = scriptMatriceGauche.CtrlColonnes.GetComponent <GradateurControleur>();
        scriptGradateurLigneDroit    = scriptMatriceDroite.CtrlLignes.GetComponent <GradateurControleur>();
        scriptGradateurColonneDroit  = scriptMatriceDroite.CtrlColonnes.GetComponent <GradateurControleur>();

        IdentifierOpérationActive();
    }