继续推进Config更新, 并修复了打击效果中的Position未初始化的漏洞
This commit is contained in:
@@ -81,10 +81,10 @@ namespace Demo.Game
|
||||
ConventionUtility.StartCoroutine(this.LoadAssetBundle(ab, x =>
|
||||
{
|
||||
GameObject sub = Instantiate(x.LoadAsset<GameObject>(prefab));
|
||||
sub.SetActive(false);
|
||||
Prefabs.Add(sub);
|
||||
sub.transform.SetParent(transform);
|
||||
sub.transform.localPosition = Vector3.zero;
|
||||
sub.SetActive(false);
|
||||
if(AssetBundles.ContainsKey(ab)==false)
|
||||
AssetBundles.Add(ab, new());
|
||||
AssetBundles[ab].Add(prefab);
|
||||
|
||||
@@ -102,6 +102,7 @@ namespace Demo.Game
|
||||
sub.SetActive(false);
|
||||
Prefabs.Add(levelId, sub);
|
||||
sub.transform.SetParent(transform);
|
||||
sub.transform.localPosition = Vector3.zero;
|
||||
AssetBundles.Add(levelId, ab);
|
||||
Durations.Add(levelId, duration);
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user