Advertisement
nutter666

Untitled

Nov 26th, 2019
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. public class Next : MonoBehaviour
  2. {
  3.    
  4.  
  5.     GameObject mainGameObject;
  6.     GameStatus mainScript;
  7.  
  8.     int enemySelection;
  9.    
  10.    
  11.  
  12.  
  13.     public void Start(){
  14.     mainGameObject = GameObject.FindWithTag("GameStatus");
  15.     mainScript = mainGameObject.GetComponent<GameStatus>();
  16.     enemySelection = mainScript.enemySelection
  17.     }
  18.  
  19.  
  20.     public void ClickN()
  21.     {
  22.        
  23.  
  24.         enemySelection += 1;
  25.  
  26.        
  27.     }
  28.  
  29.     public void ClickP()
  30.     {
  31.         enemySelection -= 1;
  32.  
  33.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement