Ejemplo n.º 1
0
    private void Start()
    {
        PowerSlider          = GameObject.Find("PowerSlider");
        ReloadingUIElement   = GameObject.Find("ReloadingUI");
        WarningBoxScriptLink = GameObject.Find("Main Warning box").GetComponent <WarningBoxScript>();

        ReloadingUIElement.SetActive(false);
        PowerSlider.SetActive(false);
    }
Ejemplo n.º 2
0
 private void Awake()
 {
     ReloadingUI       = GameObject.Find("ReloadingUI");
     ProjectileManager = GameObject.Find("ProjectileManager").GetComponent <ProjectileManager>();
     DataManager       = GameObject.Find("DataManager").GetComponent <DataManager>();
     WarningBox        = GameObject.Find("Main Warning box").GetComponent <WarningBoxScript>();
     animator          = GetComponentInChildren <Animator>();
     audioSource       = GetComponent <AudioSource>();
 }
 private void Start()
 {
     WarningBoxScriptLink = GameObject.Find("Main Warning box").GetComponent <WarningBoxScript>();
     //Default to devices
     selectedCategory = DEVICES;
     currentObjects   = deviceObjects;
     HUD = new Dictionary <int, GameObject>();
     HUD.Add(DEVICES, HUDItemGridLayoutDevice);
     HUD.Add(WEAPONS, HUDItemGridLayoutWeapon);
     HUD.Add(TECHS, HUDItemGridLayoutTech);
     //Instantiate the icons for the tabs
     PutItemsInCategory(DEVICES, deviceObjects);
     PutItemsInCategory(WEAPONS, weaponsObjects);
     PutItemsInCategory(TECHS, techObjects);
 }