void Start() { changeGear = gladiator.GetComponentInChildren <ChangeGear>(); foreach (string item in defaultItems) { changeGear.EquipItem(item); } }
private void Start() { unit = GameObject.FindGameObjectWithTag("Unit").gameObject; changeGearScript = unit.GetComponent <ChangeGear>(); equipmentScript = unit.GetComponent <Equipment>(); }
public void ChangeToNewGear(ChangeGear cGear) { chosenGear.SetColor(Color.white); chosenGear = cGear; SetupGearRotation(); }