Esempio n. 1
0
 public void RenderGUI()
 {
     EditorGUI.BeginDisabledGroup(player_.IsSimulating);
     EditorGUI.BeginChangeCheck();
     frameRequest_ = EditorGUILayout.IntSlider(player_.Frame, 0, player_.MaxFrames,
                                               GUILayout.ExpandWidth(true), GUILayout.Height(20f));
     if (EditorGUI.EndChangeCheck() && (lastFrameRequest_ != frameRequest_))
     {
         lastFrameRequest_ = frameRequest_;
         player_.SetPauseFrame(frameRequest_, true);
     }
     GUILayout.Space(5f);
     EditorGUILayout.LabelField("of ", GUILayout.Width(20f), GUILayout.ExpandWidth(false));
     EditorGUILayout.LabelField(player_.MaxFramesString, maxFramesStyle_, GUILayout.Width(45f));
     EditorGUI.EndDisabledGroup();
 }