示例#1
0
 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]);
 }
示例#2
0
 public AnimSFX(SFXPlayer player, int anim, string sfxPath)
 {
     Init(anim, new SFXPlayer.Info(sfxPath), 2); this.player = player;
 }