Exemplo n.º 1
0
 public void Start()
 {
     Instantiate(list.vehicles[PlayerPrefs.GetInt("pointer")], spawnposition.transform.position, spawnposition.transform.rotation);
     r = GameObject.FindGameObjectWithTag("Player").GetComponent <rocketship>();
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     //rocket = GameObject.Find("rocketship(Clone)").GetComponent<rocketship>();
     //rocket = GameObject.FindObjectOfType<rocketship>().GetComponent<rocketship>();
     rocket = GameObject.FindGameObjectWithTag("Player").GetComponent <rocketship>();
 }
Exemplo n.º 3
0
 void Start()
 {
     rocket = GameObject.FindGameObjectWithTag("Player").GetComponent <rocketship>();
 }
Exemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     rocket = GameObject.Find("rocketship").GetComponent <rocketship>();
 }