コード例 #1
0
    //draw editor gui
    public virtual void Draw(ActionObject aco)
    {
        GUILayout.BeginVertical();
        float rateTime = mTime / aco.mTotalTime;

        TimeLine(rateTime);
        rateTime = GUILayout.HorizontalSlider(rateTime, 0, 1f, GUILayout.Width(window_size.x));
        mTime    = aco.mTotalTime * rateTime;
        float parentTime = aco.GetParentEventTime(this);

        if (parentTime > mTime)
        {
            mTime = parentTime;
        }
        GUILayout.EndVertical();
    }