Example #1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.A))
     {
         int hurt = -100;
         DynamicNumber.ChangeNum(t, hurt);
         currentHp += hurt;
         DynamicImage.MoveImageByFillAmount(img, currentHp / (float)totalHp, 1f);
     }
 }