so i have two instantation scripts that i dont want to have happen at the same time how would i keep this from happening? here are the scripts:
//Tower 1 button
if(GUI.RepeatButton (Rect ((Screen.width - 70) - towerOneLeft,Screen.height - 65,50,50), "Tower_1") || Input.GetKeyUp("a")){
isGui = true;
tower1Bool = true;
if(a == 0){
ghost1Tower = Instantiate(tower1Ghost,gridPoint.transform.position,Quaternion.identity);
a = 1;
}
}
//Tower 2 button
if(GUI.RepeatButton (Rect ((Screen.width - 70) - (towerOneLeft*2),Screen.height - 65,50,50), "Tower_2") || Input.GetKeyUp("s")){
isGui = true;
tower2Bool = true;
if(b == 0){
ghost2Tower = Instantiate(tower1Ghost,gridPoint.transform.position,Quaternion.identity);
b = 1;
}
}