// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2020-09-02 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** using UnityEngine; namespace G { public class Ef_blur : MonoBehaviour { private Material _mat; private void Awake() { _mat = this.GetComponentInChildren().material; _mat.mainTextureOffset = Vector2.zero; this.gameObject.SetActive(false); } private void Update() { Vector2 mainTextureOffset = _mat.mainTextureOffset; if (mainTextureOffset.y > -1f) { _mat.mainTextureOffset -= Vector2.up * Time.deltaTime * 2f; return; } _mat.mainTextureOffset = Vector2.zero; this.gameObject.SetActive(false); } } }