Ejemplo n.º 1
0
 IEnumerator MinsHPBar()
 {
     hpbar.SetSize(hp);
     hp -= 0.1f;
     Debug.Log("My hp is" + hp);
     yield return(new WaitForSeconds(loadTime));
 }
Ejemplo n.º 2
0
    public void RedTank3Hp(int x)
    {
        float y = (float)x;

        y = (x / 100f);
        //Debug.Log("y is " + y);
        redTank3Hp.SetSize((float)y);
    }
Ejemplo n.º 3
0
    public void BlueTank3Hp(int x)
    {
        //Debug.Log("Blue Tanks1hp was called and hp was passed in " + x);
        float y = (float)x;

        y = (x / 100f);
        //Debug.Log("after x was normalized y is " + y);
        //Debug.Log("y is " + y);
        blueTank3Hp.SetSize((float)y);
    }