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