Arduino UNO Interrupt

Hi everyone I made a robot which is otonom and also can be controlled manual I define input pin2 in uno as interrupt like below when I switch the buton from HIGH to LOW or LOW to HIGH the program works correct and it can entry between this to function but it run the function only one times and then stop.For example in otonom mode it mesaures the distance only one times and then stop.How can I run it continuously.
attachInterrupt(0, manual, RISING);
attachInterrupt(0, otonom, FALLING);

Code? Please use autoformat, use code tags, and provide COMPLETE code.

attachInterrupt(0, manual, RISING);
attachInterrupt(0, otonom, FALLING);

You can only have one interrupt handler connected to an interrupt vector at a time.

You could use CHANGE as the type (the second argument) and then, in the ISR, read the current state of the pin to determine whether to do what manual does or what otonom does.

However, it is extremely unlikely that the interrupt handler(s) are the right approach.

const byte InterruptPin = 2;
boolean ModeFlag = true;  // true = manual, false = otonom

void setup()
{
  attachInterrupt(digitalPinToInterrupt(InterruptPin), ModeISR, CHANGE);
}

void ModeISR()
{
  ModeFlag = digitalRead(InterruptPin);
}

void loop()
{
  if (ModeFlag)
    manual();
  else
    otonom();
}

void manual() {}
void otonom() {}

Of course that has the same effect as:

const byte InterruptPin = 2;

void setup()
{
}

void loop()
{
  if (digitalRead(InterruptPin))
    manual();
  else
    otonom();
}

void manual() {}
void otonom() {}

@johnwasser thank you so much I tried your codes now it is working