private void RaiseCamRotation(string axe, float dir)
 {
     if (CamRotation != null)
     {
         CamRotation.Invoke(axe, dir);
     }
 }
Ejemplo n.º 2
0
    private void Awake()
    {
        GameObject cam = GameObject.FindGameObjectWithTag("MainCamera");

        _cam = cam.GetComponent <CamRotation>();
        _wr  = cam.GetComponentInParent <WoldRotation>();
    }
Ejemplo n.º 3
0
 void Start()
 {
     _cameraBreak   = gameObject.GetComponentInParent <CameraBreak>();
     cameraRotation = gameObject.GetComponentInParent <CamRotation>();
     //lens.GetComponentInParent<Light>().color = Color.green;
     lens = transform.parent.GetComponent <Transform>();
     //_layerMask = ~_layerMask;
 }
Ejemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     _instance = this;
 }