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