void Start() { m_manager = managerParentObject.GetComponent <InvadersManagerScript>(); Button button = GetComponent <Button>(); button.onClick.AddListener(ResetScene); }
private void Awake() { imageTarget = GameObject.Find("ImageTarget"); _manager = imageTarget.GetComponent <InvadersManagerScript>(); }
// Use this for initialization void Start() { scoreText = GetComponent <Text>(); manager = GameObject.Find("ImageTarget").GetComponent <InvadersManagerScript>(); }