private void Awake() { mover = new BarMover(bar, movementProperties); scaler = new BarScaler(left, right); visibility = GetComponent <SpriteVisibility>(); objectVisibility = GetComponent <ObjectVisibility>(); powerups = GetComponent <BarPickups>(); state = State.Inactive; }
private void Awake() { visibility = GetComponent <SpriteVisibility>(); }