void RemoveRenderEventCall() { foreach (Camera cam in Camera.allCameras) { NsRenderManager_B nsr = cam.GetComponent <NsRenderManager_B>(); if (nsr != null) { nsr.RemoveRenderEventCall(this); } } }
void AddRenderEventCall() { foreach (Camera cam in Camera.allCameras) { NsRenderManager_B nsr = cam.GetComponent <NsRenderManager_B>(); if (nsr == null) { nsr = cam.gameObject.AddComponent <NsRenderManager_B>(); } nsr.AddRenderEventCall(this); } }