Exemple #1
0
 // Use this for initialization
 void Start()
 {
     balance = this.GetComponent<BalanceSlider>();
     energy = this.GetComponent<Bar>();
     energy.setAmount(1.0f);
     Bar.EmptyEvent += OnEmpty;
 }