// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2020-09-02 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** using UnityEngine; namespace G { public class Ef_hit : MonoBehaviour { private float _showDelay; private Vector3 _originScale; private Vector3 _growVector = new Vector3(-3f, 0f, 10f); private void OnEnable() { this.transform.localPosition = Vector3.zero; } private void Start() { _originScale = transform.localScale; //this.GetComponent().sharedMaterial.renderQueue = 4051; } private void Update() { if (_showDelay < 0.25f) { this.transform.localScale += _growVector * Time.deltaTime; _showDelay += Time.deltaTime; return; } _showDelay = 0f; this.transform.position = Vector3.one * 0.2f; this.transform.localScale = _originScale; this.gameObject.SetActive(false); } } }