Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     healthBar.fillAmount = hp;
     anim.SetFloat("hp", hp);
     if (shake == true)
     {
         cs.cameraShake();
         if (cs.shakeTimer <= 0)
         {
             shake = false;
             cs.reload();
         }
     }
 }