PrefabPlayer.cs 481 B

1234567891011121314151617181920
  1. namespace ShadowStudio.Model
  2. {
  3. /// <summary>
  4. /// 预制体继承modelPlayer
  5. /// </summary>
  6. public class PrefabPlayer : ModelPlayer
  7. {
  8. private string containerName;
  9. public PrefabPlayer(string containerName)
  10. {
  11. this.containerName = containerName;
  12. }
  13. public override ArtContainer CreateContainer()
  14. {
  15. return ArtInfoMgr.Instance.CreateContainer(Info.ArtType, containerName);
  16. }
  17. }
  18. }