// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2020-09-02 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** using UnityEngine; namespace G { public class Pt_hit : MonoBehaviour { private bool _on; private float _delay; public Ef_hit script_hit; private void Start() { script_hit.gameObject.SetActive(false); } public void ParticleOn() { _on = true; script_hit.gameObject.SetActive(true); } private void Update() { if (_on) { if (_delay > 0.1f) { script_hit.gameObject.SetActive(false); _on = false; _delay = 0f; } else { _delay += Time.deltaTime; } } } } }