Exemplo n.º 1
0
    private void Awake()
    {
        rb = GetComponent <Rigidbody2D>();

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

        Player.PlayerMoved += Player_PlayerMoved;
    }
Exemplo n.º 2
0
 private void Start()
 {
     FacingRotation = GetComponent <FacingRotation>();
 }