| | |
| | |
|
| | | public GameObject RequestDefaultPet()
|
| | | {
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralConfig.Instance.ModeDefaultConfig[2][0],
|
| | | GeneralConfig.Instance.ModeDefaultConfig[2][1]);
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralDefine.ModeDefaultConfig[2][0],
|
| | | GeneralDefine.ModeDefaultConfig[2][1]);
|
| | |
|
| | | if (!_prefab)
|
| | | {
|
| | |
| | |
|
| | | GameObjectPool _pool = RequestPool(_prefab);
|
| | |
|
| | | _pool.assetName = GeneralConfig.Instance.ModeDefaultConfig[2][1];
|
| | | _pool.assetBundleName = GeneralConfig.Instance.ModeDefaultConfig[2][0];
|
| | | _pool.assetName = GeneralDefine.ModeDefaultConfig[2][1];
|
| | | _pool.assetBundleName = GeneralDefine.ModeDefaultConfig[2][0];
|
| | |
|
| | | return _pool.Request();
|
| | | }
|
| | |
|
| | | public GameObject RequestDefaultFightNpc()
|
| | | {
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralConfig.Instance.ModeDefaultConfig[1][0],
|
| | | GeneralConfig.Instance.ModeDefaultConfig[1][1]);
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralDefine.ModeDefaultConfig[1][0],
|
| | | GeneralDefine.ModeDefaultConfig[1][1]);
|
| | |
|
| | | if (!_prefab)
|
| | | {
|
| | |
| | |
|
| | | GameObjectPool _pool = RequestPool(_prefab);
|
| | |
|
| | | _pool.assetName = GeneralConfig.Instance.ModeDefaultConfig[1][1];
|
| | | _pool.assetBundleName = GeneralConfig.Instance.ModeDefaultConfig[1][0];
|
| | | _pool.assetName = GeneralDefine.ModeDefaultConfig[1][1];
|
| | | _pool.assetBundleName = GeneralDefine.ModeDefaultConfig[1][0];
|
| | |
|
| | | return _pool.Request();
|
| | | }
|
| | |
|
| | | public GameObject RequestDefaultFuncNpc()
|
| | | {
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralConfig.Instance.ModeDefaultConfig[0][0],
|
| | | GeneralConfig.Instance.ModeDefaultConfig[0][1]);
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralDefine.ModeDefaultConfig[0][0],
|
| | | GeneralDefine.ModeDefaultConfig[0][1]);
|
| | |
|
| | | if (!_prefab)
|
| | | {
|
| | |
| | |
|
| | | GameObjectPool _pool = RequestPool(_prefab);
|
| | |
|
| | | _pool.assetName = GeneralConfig.Instance.ModeDefaultConfig[0][1];
|
| | | _pool.assetBundleName = GeneralConfig.Instance.ModeDefaultConfig[0][0];
|
| | | _pool.assetName = GeneralDefine.ModeDefaultConfig[0][1];
|
| | | _pool.assetBundleName = GeneralDefine.ModeDefaultConfig[0][0];
|
| | |
|
| | | return _pool.Request();
|
| | | }
|
| | |
|
| | | public void ReleaseDefaultPet(GameObject go)
|
| | | {
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralConfig.Instance.ModeDefaultConfig[2][0],
|
| | | GeneralConfig.Instance.ModeDefaultConfig[2][1]);
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralDefine.ModeDefaultConfig[2][0],
|
| | | GeneralDefine.ModeDefaultConfig[2][1]);
|
| | | if (!_prefab)
|
| | | {
|
| | | return;
|
| | |
| | |
|
| | | public void ReleaseDefaultHorse(GameObject go)
|
| | | {
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralConfig.Instance.ModeDefaultConfig[3][0],
|
| | | GeneralConfig.Instance.ModeDefaultConfig[3][1]);
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralDefine.ModeDefaultConfig[3][0],
|
| | | GeneralDefine.ModeDefaultConfig[3][1]);
|
| | | if (!_prefab)
|
| | | {
|
| | | return;
|
| | |
| | |
|
| | | public void ReleaseDefaultFightNPC(GameObject go)
|
| | | {
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralConfig.Instance.ModeDefaultConfig[1][0],
|
| | | GeneralConfig.Instance.ModeDefaultConfig[1][1]);
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralDefine.ModeDefaultConfig[1][0],
|
| | | GeneralDefine.ModeDefaultConfig[1][1]);
|
| | |
|
| | | if (!_prefab)
|
| | | {
|
| | |
| | |
|
| | | public void ReleaseDefaultFuncNPC(GameObject go)
|
| | | {
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralConfig.Instance.ModeDefaultConfig[0][0],
|
| | | GeneralConfig.Instance.ModeDefaultConfig[0][1]);
|
| | | GameObject _prefab = InstanceResourcesLoader.LoadMob(GeneralDefine.ModeDefaultConfig[0][0],
|
| | | GeneralDefine.ModeDefaultConfig[0][1]);
|
| | |
|
| | | if (!_prefab)
|
| | | {
|