Beispiel #1
0
 void Start()
 {
     playerPrefsController = FindObjectOfType <PlayerPrefsController>();
     randomCubeGenerator   = FindObjectOfType <RandomCubeGenerator>();
     difficultyController  = FindObjectOfType <DifficultyController>();
     volumeSlider.value    = PlayerPrefsController.GetMasterVolume();
 }
Beispiel #2
0
    void Start()
    {
        RandomCubeGenerator generator = new RandomCubeGenerator();

        XmlSerializer serializer = new XmlSerializer(typeof(RandomCubeGenerator));
        StreamWriter  writer     = new StreamWriter("mapa.xml");

        serializer.Serialize(writer.BaseStream, generator);
        writer.Close();
    }
Beispiel #3
0
 private void Awake()
 {
     Application.targetFrameRate = 60;
     gameTimer        = GetComponent <GameTimer>();
     rndCubeGenerator = GetComponent <RandomCubeGenerator>();
 }