void Start() { GameObject arwing_object = GameObject.FindWithTag("Arwing"); arwing = arwing_object.GetComponent <Arwing>(); GameObject gameControllerObject = GameObject.FindWithTag("GameController"); if (gameControllerObject != null) { gameController = gameControllerObject.GetComponent <GameController>(); } }
// Start is called before the first frame update void Start() { GameObject arwing_object = GameObject.FindWithTag("Arwing"); arwing = arwing_object.GetComponent <Arwing>(); }