public PlayerProgressObject(GameObject progressBar, int maxPoints) { GO_progressBar = progressBar; expBar = progressBar.GetComponent <ProgressScreen_EXPBar>(); expBar.SetUp(maxPoints); winTextController = progressBar.GetComponent <ProgressBarWinTextController>(); //ExperianceSlider.gameObject.GetComponentInChildren<Outline>().enabled = false; }
// Start is called before the first frame update void Awake() { expBar = GetComponentInParent <ProgressScreen_EXPBar>(); rectTransform = GetComponent <RectTransform>(); image = GetComponent <Image>(); }