public static SoundPoint LoadSound(string resref, AuroraGIT.ASound gitData) { AuroraUTS ap = data.Get <AuroraUTS>(resref, ResourceType.UTS); SoundPoint p = SoundPoint.Create(ap, gitData); return(p); }
public static SoundPoint Create(AuroraUTS uts, AuroraGIT.ASound gitData) { GameObject gameObject; //get the resource reference for this object, which we'll use as it's in-engine name string name = gitData.Tag; //create a new game object and load the model into the scene gameObject = new GameObject(); gameObject.name = name; //add the template component to the new object SoundPoint soundPoint = gameObject.AddComponent <SoundPoint>(); soundPoint.template = uts; soundPoint.gitData = gitData; return(soundPoint); }