30 lines
653 B
C#
30 lines
653 B
C#
using System;
|
|
|
|
namespace UnityEditor.U2D.Tooling.Analyzer
|
|
{
|
|
class AnalyzerProgress
|
|
{
|
|
int m_ID;
|
|
|
|
public void StartProgressTrack()
|
|
{
|
|
m_ID = Progress.Start("Atlas Analyzer");
|
|
}
|
|
|
|
public void UpdateProgressTrack(int currentStep, int totalStep, string message)
|
|
{
|
|
Progress.Report(m_ID, currentStep, totalStep, message);
|
|
}
|
|
|
|
public void UpdateProgressTrack(float progress, string message)
|
|
{
|
|
Progress.Report(m_ID, progress, message);
|
|
}
|
|
|
|
public void EndProgressTrack()
|
|
{
|
|
Progress.Remove(m_ID);
|
|
}
|
|
}
|
|
}
|