|
|
@@ -4,7 +4,7 @@ using UnityEngine;
|
|
|
|
|
|
public class ConductReadyTip : MonoBehaviour
|
|
|
{
|
|
|
- private bool isShowing;
|
|
|
+ public bool isShowing;
|
|
|
public GameObject starFx;
|
|
|
private float time;
|
|
|
private void Start()
|
|
|
@@ -25,8 +25,15 @@ public class ConductReadyTip : MonoBehaviour
|
|
|
}
|
|
|
public void Show()
|
|
|
{
|
|
|
- time = 0;
|
|
|
- starFx.SetActive(true);
|
|
|
isShowing = true;
|
|
|
+ starFx.SetActive(true);
|
|
|
+ starFx.GetComponent<ParticleSystem>().Simulate(0);
|
|
|
+ starFx.GetComponent<ParticleSystem>().Play();
|
|
|
+ }
|
|
|
+ public void Init()
|
|
|
+ {
|
|
|
+ starFx.SetActive(false);
|
|
|
+ isShowing = false;
|
|
|
+ time = 0;
|
|
|
}
|
|
|
}
|