Ejemplo n.º 1
0
    void Start()
    {
        circleGauge = GetComponent<Image>();
        pcZ = GameObject.FindGameObjectWithTag("Player").GetComponent<Player_ControllerZ>();

        switch (type)
        {
            case GaugeType.HP:
                oldHP = pcZ.GetHP();
                maxHP = oldHP;
                break;
            case GaugeType.MP:
                oldMP = pcZ.GetMP();
                maxMP = oldMP;
                break;
            default:
                break;
        }
    }