private void Start() { startPosition = transform.position; rb = GetComponent <Rigidbody2D>(); manager = GameObject.Find("GameManager").GetComponent <ILevelManagerCondensation>(); }
protected override void Start() { base.Start(); manager = managerObj.GetComponent <ILevelManagerCondensation>(); //condensation bar condensationBar = this.transform.GetChild(4).gameObject.GetComponent <ProgressBar>(); setInitialBarValues(condensationBar, manager.GetCondensedVapour(), manager.GetCondensedVapourNeeded()); }