public SFXPlayer SFX(string path) { if (!sfx.ContainsKey(path)) { sfx.Add(path, SFXPlayer.CreateOn(this, new SFXPlayer.Info { path = path, space = SFXPlayer.Space.Point })); } return(sfx[path]); }
public AnimSFX(SFXPlayer player, int anim, string sfxPath) { Init(anim, new SFXPlayer.Info(sfxPath), 2); this.player = player; }