// Update is called once per frame void Update() { if (m_parallaxManager == null) { m_parallaxManager = GameObject.FindGameObjectWithTag("ParallaxManager").GetComponent <parralaxManager>(); } this.transform.position -= m_directionMouvement * m_parallaxManager.getGroundSpeedf(); }
// Update is called once per frame void Update() { if (m_parallaxManager == null) { m_parallaxManager = GameObject.FindGameObjectWithTag("ParallaxManager").GetComponent<parralaxManager>(); } this.transform.position -= m_directionMouvement * m_parallaxManager.getGroundSpeedf (); }