LabAPI
LabAPI copied to clipboard
[IDEA] Prefabs and toys manager
we need prefabs and toys manager to spawn some prefabs for example:
-
enum PrefabType : uint
-
enum AdminToyType
-
static class PrefabManager:
- static GameObject Spawn(PrefabType type,Vector3 pos,Vector3 rotation);
- static GameObject Create(PrefabType type);
-
static class AdminToyManager:
- static GameObject Spawn(AdminToyType type,Vector3 pos,Vector3 rotation,out AdminToyBase toybase);
- static GameObject Create(AdminToyType type,out AdminToyBase toybase);
PrefabManager and AdminToyManager should not need to be seperate (They are all prefabs and should all be treated as such)
We've reopened this suggestion to prevent confusion and duplicate posts. The issue has been added to our internal tracker, but that does not guarantee acceptance nor implementation.