Example #1
0
    void Start()
    {
        GameObject gamecontroller = GameObject.FindGameObjectWithTag("GameController");

        if (gamecontroller)
        {
            idiomadmin = gamecontroller.GetComponent <IdiomaAdmin>();
            LoadSettings();
        }
        else
        {
            print("No hay gamecontroller en la escena");
        }
    }
Example #2
0
 void Awake()
 {
     idiomadmin = GameObject.FindGameObjectWithTag("GameController").GetComponent <IdiomaAdmin>();
 }