Exemplo n.º 1
0
 private void Awake()
 {
     rb = GetComponent <Rigidbody2D>();
     movementFromInput = GetComponent <MovementFromInput>();
     groundChecker     = GetComponent <GroundChecker>();
 }
Exemplo n.º 2
0
    // TODO: on game start: optional teleport to starting point

    private void Awake()
    {
        movementFromInput = GetComponent <MovementFromInput>();
        UpdateDirection();
    }