Пример #1
0
 void Start()
 {
     moneyController = GameObject.FindGameObjectWithTag("Player").GetComponent <MoneyController>();
     hp = maxHP;
     try
     {
         uiStatsElement = lineStatsHP.GetComponent <StatsHP>();
     }
     catch
     {
         Debug.LogError("Set UI element for show statistics");
     }
 }