void Awake() { if (Instance) { Destroy(gameObject); return; } else { Instance = this; } }
void Awake() { if(Instance) { Destroy (gameObject); return; } else { Instance = this; } }
void OnWillRenderObject() { if (!gameObject.activeInHierarchy) { return; } Camera currentCam = Camera.current; if (TargetingCamera.IsTGPCamera(currentCam)) { UpdateWidth(currentCam, 4); } else { UpdateWidth(currentCam, 1); } }