void Start() { weaponUI = GetComponentInChildren <WeaponUI>(); weaponUI.transform.GetChild(0).gameObject.SetActive(true); slotMachinePointAggegator = GetComponentInChildren <SlotMachinePointAggegator>(); weaponUI.transform.GetChild(0).gameObject.SetActive(false); }
// Start is called before the first frame update void Start() { Text[] texts = GetComponentsInChildren <Text>(); foreach (Text t in texts) { if (t.name.Equals(scoreTextName)) { scoreText = t; } } aggregator = GetComponentInChildren <SlotMachinePointAggegator>(); }