Пример #1
0
 public void Start()
 {
     Instantiate(list.vehicles[PlayerPrefs.GetInt("pointer")], spawnposition.transform.position, spawnposition.transform.rotation);
     r = GameObject.FindGameObjectWithTag("Player").GetComponent <rocketship>();
 }
Пример #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>();
 }
Пример #3
0
 void Start()
 {
     rocket = GameObject.FindGameObjectWithTag("Player").GetComponent <rocketship>();
 }
Пример #4
0
 // Start is called before the first frame update
 void Start()
 {
     rocket = GameObject.Find("rocketship").GetComponent <rocketship>();
 }