private void Start() { if (UIVar == null) { UIVar = GameObject.Find("Scene").GetComponent <UIVariables>(); } }
private void Start() { UIVars = GameObject.Find("Scene").GetComponent <UIVariables>(); player = GameObject.FindGameObjectWithTag("Player"); ps = GetComponent <ParticleSystem>(); audio = GetComponent <AudioSource>(); }
void Start() { UIVar = GameObject.Find("Scene").GetComponent <UIVariables>(); remaining = rounds; tag = transform.parent.tag; transform.parent = transform.parent.transform; }
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(); }
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); }
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(); }