Пример #1
0
 // Use this for initialization
 void Start()
 {
     text         = GetComponent <Text>();
     weaponSwitch = transform.root.GetComponent <WeaponSwitch>();
     playerAmmo   = weaponSwitch.GetComponent <PlayerAmmo>();
 }