// Update is called once per frame void Update() { _color -= Color.white * 0.01f; for (int i = 0; i < transform.childCount; i++) { transform.GetChild(i).Translate(_direction[i]); transform.GetChild(i).GetComponent <Renderer>().material.SetColor("_TintColor", _color); } if (_color.a < 0) { Destroy(gameObject); Destroy(_particle_GameObject); StaticParameter.ClearReference(ref _particle_GameObject); } }
public void OnExit() { Object.Destroy(_copy); StaticParameter.ClearReference(ref _copy); }
public void OnDisable() { Destroy(_copy_Effect); StaticParameter.ClearReference(ref _copy_Effect); }