Unity 5 button event OnPointerDown call function Once Only !!

hi …i add event trigger to a button … cus onClick only call onec … so when i click button in new UI with event trigger OnPointerDown it on call function Once and i stil press the button !! … why !! .
i am trying to make a touch shooting button to my android game …

i solved the problem like this …

first i made a Var …

var isShooting :boolean = false;

function Update() {
if( isShooting == true){

Shooting();
}

}

function Shooting(){

// shooting Script 

}
function EndShooting(){
  isShooting = false;

 }

then add OnPointerDown Event Trigger … and OnPointerUP Event Trigger to the Button

any one have this problem can do like i did :slight_smile: