CharacterCaracteristics.OnGUI C# (CSharp) Method

OnGUI() public method

public OnGUI ( ) : void
return void
    void OnGUI()
    {
        DrawRectangle( new Rect(Screen.width-100, 0, 100, 20), new Color(0f ,0.0f ,0.1f ,0.65f));
        DrawRectangle( new Rect(Screen.width-100, 0, progress*100, 20), new Color(0f ,0.9f ,1f ,1f));
        /*// Constrain all drawing to be within a pixel area .
        GUI.BeginGroup (new Rect (Screen.width-100, 0, progress*100, 20));

        // Define progress bar texture within customStyle under Normal > Background
        GUI.Box (new Rect (0,0, 100, 200), "Expérience");

        // Always match BeginGroup calls with an EndGroup call
        GUI.EndGroup ();*/
    }