Пример #1
0
    // Start is called before the first frame update

    public void Start()
    {
        my_pauseStat_script = my_pauseStat.GetComponent <PauseMenu>();
        my_tuto1_script     = my_tuto1.GetComponent <Tutorial1>();
        if (FindObjectOfType <Player2>().JugadorEnScena == true)
        {
            Play("AudioFondo");
        }
    }
Пример #2
0
        public static void WriteXML()
        {
            Tutorial1 objWrite = new Tutorial1();

            objWrite.pagecount = 10;
            objWrite.author    = "Ramesh";

            XmlSerializer writer     = new XmlSerializer(typeof(Tutorial1));
            string        pathtosave = "D:\\tempxml.xml";
            FileStream    file       = File.Create(pathtosave);

            writer.Serialize(file, objWrite);
            file.Close();
            Console.ReadLine();
        }