Rf controlled robot - Help

Hello guys,

I decided to make a large scale firefighting robot for my senior project which will be controlled by 2 Arduinos, 1 UNO, 1 MEGA. I have no experience with Arduino and I would really appreciate any help provided.
So the idea is to use the UNO as the remote control to give commands through RF to the MEGA. There will be no speed control, no readings, just ON-OFF. Everything will be "controlled" through transistors or relays. For example, the movement of the robot will be controlled with 4 buttons which will set high different relays and for reverse movement I will use a DPDT relay to switch polarity on the motor.
I already found the coding for the buttons to toggle or set an output high but when it comes to RF, things change and that's where I am confused. I will use an HC-12 at both ends.
I just need a code example to understand the working of the HC-12 and how to send commands to another arduino. For someone with experience it's rather simple as the only thing needed is setting outputs On or Off.

Thanks in advance

I just need a code example to understand the working of the HC-12

The HC-12 is a serial device.

Serial.print("Send something to the HC-12"); // Assumes that you have connected the HC-12 to pins 0 and 1.