Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Next : MonoBehaviour
- {
- GameObject mainGameObject;
- GameStatus mainScript;
- int enemySelection;
- public void Start(){
- mainGameObject = GameObject.FindWithTag("GameStatus");
- mainScript = mainGameObject.GetComponent<GameStatus>();
- enemySelection = mainScript.enemySelection
- }
- public void ClickN()
- {
- enemySelection += 1;
- }
- public void ClickP()
- {
- enemySelection -= 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement