void Start() { _velCam = GameObject.FindGameObjectWithTag("VelocityCamera").GetComponent<VelocityCamera>(); _defaultShader = renderer.material.shader; if(_velCam != null) _velCam.AddToRenderList(this); }
void Start() { _velCam = GameObject.FindGameObjectWithTag("VelocityCamera").GetComponent <VelocityCamera>(); _defaultShader = renderer.material.shader; if (_velCam != null) { _velCam.AddToRenderList(this); } }