While ago i've been in a situation where a girl was giving me signals that says " hey look at me am here just waiting for you to come " I was with my male friend which also had the same thinking about her and that she was giving him signals too i was so confused ... and didnt have any idea on wut to do so i just finished by not going towards her by fear of bypassing my friend or some shit like that ... (she was hot as hell )

What do i do if come again in a situation like this in front of one of my friends ?