|
@@ -41,6 +41,10 @@ public class StaticImportant : MonoBehaviour
|
|
|
|
|
|
private List<GameObject> models = new List<GameObject>();
|
|
private List<GameObject> models = new List<GameObject>();
|
|
|
|
|
|
|
|
+ public bool important = false;
|
|
|
|
+
|
|
|
|
+ public GameObject extraParticle;
|
|
|
|
+
|
|
private void Awake()
|
|
private void Awake()
|
|
{
|
|
{
|
|
foucusPos = this.transform.position;
|
|
foucusPos = this.transform.position;
|
|
@@ -82,6 +86,7 @@ public class StaticImportant : MonoBehaviour
|
|
onShow = true;
|
|
onShow = true;
|
|
for (int i = 0; i < models.Count; i++)
|
|
for (int i = 0; i < models.Count; i++)
|
|
{
|
|
{
|
|
|
|
+ //Debug.Log(models[i].name);
|
|
models[i].SetActive(true);
|
|
models[i].SetActive(true);
|
|
}
|
|
}
|
|
CheckChangeModels();
|
|
CheckChangeModels();
|
|
@@ -93,6 +98,7 @@ public class StaticImportant : MonoBehaviour
|
|
onShow = false;
|
|
onShow = false;
|
|
for (int i = 0; i < models.Count; i++)
|
|
for (int i = 0; i < models.Count; i++)
|
|
{
|
|
{
|
|
|
|
+ //Debug.Log(models[i].name);
|
|
models[i].SetActive(false);
|
|
models[i].SetActive(false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -211,7 +217,7 @@ public class StaticImportant : MonoBehaviour
|
|
fader.material.DOColor(Color.clear, 1.5f).onComplete = () => { fader.gameObject.SetActive(false); };
|
|
fader.material.DOColor(Color.clear, 1.5f).onComplete = () => { fader.gameObject.SetActive(false); };
|
|
};
|
|
};
|
|
birdCamera.target.localPosition = centerPos;
|
|
birdCamera.target.localPosition = centerPos;
|
|
- Debug.Log(birdCamera.target.position);
|
|
|
|
|
|
+ //Debug.Log(birdCamera.target.position);
|
|
birdCamera.currentDistance = targetDistance;
|
|
birdCamera.currentDistance = targetDistance;
|
|
birdCamera.rotateXAngle = rotateXAngle;
|
|
birdCamera.rotateXAngle = rotateXAngle;
|
|
birdCamera.rotateYAngle = rotateYAngle;
|
|
birdCamera.rotateYAngle = rotateYAngle;
|
|
@@ -265,7 +271,10 @@ public class StaticImportant : MonoBehaviour
|
|
{
|
|
{
|
|
Debug.LogError($"{model_ab_Name}下载失败:{www.error}");
|
|
Debug.LogError($"{model_ab_Name}下载失败:{www.error}");
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ if (extraParticle != null) {
|
|
|
|
+ models.Add(extraParticle);
|
|
|
|
+ }
|
|
|
|
+ Hide();
|
|
www.Dispose();
|
|
www.Dispose();
|
|
}
|
|
}
|
|
}
|
|
}
|