Пример #1
0
 // Update is called once per frame
 void Update()
 {
     maxHealth = PlayerShop.GetHealth();
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     maxHealth     = PlayerShop.GetHealth();
     currentHealth = maxHealth;
 }