Beispiel #1
0
 private void Start()
 {
     if (UIVar == null)
     {
         UIVar = GameObject.Find("Scene").GetComponent <UIVariables>();
     }
 }
Beispiel #2
0
 private void Start()
 {
     UIVars = GameObject.Find("Scene").GetComponent <UIVariables>();
     player = GameObject.FindGameObjectWithTag("Player");
     ps     = GetComponent <ParticleSystem>();
     audio  = GetComponent <AudioSource>();
 }
Beispiel #3
0
 void Start()
 {
     UIVar            = GameObject.Find("Scene").GetComponent <UIVariables>();
     remaining        = rounds;
     tag              = transform.parent.tag;
     transform.parent = transform.parent.transform;
 }
Beispiel #4
0
 private void Start()
 {
     inTrigger     = new List <GameObject>();
     UIVar         = GameObject.Find("Scene").GetComponent <UIVariables>();
     startLocation = transform.position;
     rb            = GetComponent <Rigidbody2D>();
     // Default without flip is right
     sr = GetComponent <SpriteRenderer>();
     SwitchSlots();
 }
Beispiel #5
0
 public void Initialize()
 {
     this.variables  = GameObject.Find("Script").GetComponent <UIVariables>();
     this.score      = new TextUI("Score : ", 0, variables.scoreUI);
     this.cash       = new TextUI("Cash : ", 0, variables.cashUI);
     this.headshot   = new TextUI("Headshot : ", 0, variables.headshotUI);
     this.playerKill = new TextUI("Player Kill : ", 0, variables.playerKillsUI);
     this.towerKill  = new TextUI("Tower Kill : ", 0, variables.towerKillsUI);
     this.totalKill  = new TextUI("Total Kill : ", 0, variables.totalKillsUI);
 }
Beispiel #6
0
 public GlobalVariableLibrary()
 {
     inputVariables       = new InputVariables();
     gameSettingVariables = new GameSettingVariables();
     shipVariables        = new ShipVariables();
     projectileVariables  = new ProjectileVariables();
     powerUpVariables     = new PowerUpVariables();
     sceneVariables       = new SceneVariables();
     uiVariables          = new UIVariables();
     aiVariables          = new AIVariables();
     networkingVariables  = new NetworkingVariables();
 }