private void Awake() { lift = GameObject.FindGameObjectWithTag("ExitLift"); liftScript = lift.GetComponent <scr_ExitLift>(); }
private void updateExitLift() { scr_ExitLift lift = GameObject.FindGameObjectWithTag("ExitLift").GetComponent <scr_ExitLift>(); lift.targetHeight = lift.targetHeight + lift.maxHeight / 4 * (active ? 1 : -1); }