// Start is called before the first frame update void Start() { rb = GetComponent <Rigidbody>(); m = GameObject.FindWithTag("floor").GetComponent <mvt>(); pm = GameObject.FindWithTag("Player").GetComponent <playermvt>(); coinsound = GameObject.FindWithTag("coinsound").GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { m = GameObject.FindWithTag("floor").GetComponent <mvt>(); rb = GetComponent <Rigidbody>(); }