public void Awake() { direction = Directions2D.toVector(motionDirection); boxCollider = GetComponent <BoxCollider2D>(); }
// Start is called before the first frame update void Awake() { forwardDirection = Directions2D.toVector(forwardMotionDirection); backwardDirection = Directions2D.toVector(backwardMotionDirection); boxCollider = GetComponent <BoxCollider2D>(); }