Example #1
0
    private void Awake()
    {
        rb = GetComponent <Rigidbody2D>();

        FacingRotation = GetComponent <FacingRotation>();
        FacingRotation.FacingDirection = Vector2Int.zero;

        Player.PlayerMoved += Player_PlayerMoved;
    }
 private void Start()
 {
     FacingRotation = GetComponent <FacingRotation>();
 }