Esempio n. 1
0
 // 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>();
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     m  = GameObject.FindWithTag("floor").GetComponent <mvt>();
     rb = GetComponent <Rigidbody>();
 }