Esempio n. 1
0
 private static Material AddNewMaterial(Color color)
 {
     materials = ArrayExtended.AppendArray(
         materials,
         CreateMaterial(color)
         );
     return(materials [materials.Length - 1]);
 }
Esempio n. 2
0
 private AudioSource AddSource()
 {
     sources = ArrayExtended.AppendArray <AudioSource>(sources, CreateAudioSource());
     return(sources[sources.Length - 1]);
 }