123456789101112131415161718192021222324252627 |
- using System.Collections.Generic;
- using Ragdoll;
- using UnityEngine;
- namespace Game
- {
- public class CockFactory : ScriptSingleton<CockFactory>
- {
- private readonly Dictionary<int, string> _cockPrefabDict = new Dictionary<int, string>()
- {
- { 1, "Cock/prefab_cock_1" },
- { 2, "Cock/prefab_cock_2" },
- { 3, "Cock/prefab_cock_3" },
- { 4, "Cock/prefab_cock_4" },
- { 5, "Cock/prefab_cock_5" },
- { 6, "Cock/prefab_cock_6" },
- { 7, "Cock/prefab_cock_7" },
- };
- public GameObject GenerateCockPrefab(int cockId)
- {
- var cockExist = _cockPrefabDict.TryGetValue(cockId, out var path);
- var prefab = Resources.Load<GameObject>(path);
- return prefab;
- }
- }
- }
|