示例#1
0
        private void DrawTokens(int totalTokens)
        {
            var empty = totalTokens == 0;

            EditorGUILayout.BeginVertical(empty ? ShiroiStyles.Error : ShiroiStyles.DefaultBackground);
            bool cleared;

            DrawCutsceneHeader(totalTokens, out cleared);
            if (!cleared && totalTokens > 0)
            {
                hasAnyFocused = false;
                TokenList.Draw();
            }

            EditorGUILayout.EndVertical();
        }