private void RaiseCamRotation(string axe, float dir) { if (CamRotation != null) { CamRotation.Invoke(axe, dir); } }
private void Awake() { GameObject cam = GameObject.FindGameObjectWithTag("MainCamera"); _cam = cam.GetComponent <CamRotation>(); _wr = cam.GetComponentInParent <WoldRotation>(); }
void Start() { _cameraBreak = gameObject.GetComponentInParent <CameraBreak>(); cameraRotation = gameObject.GetComponentInParent <CamRotation>(); //lens.GetComponentInParent<Light>().color = Color.green; lens = transform.parent.GetComponent <Transform>(); //_layerMask = ~_layerMask; }
// Start is called before the first frame update void Start() { _instance = this; }