namespacify everything
This commit is contained in:
@@ -1,26 +1,25 @@
|
||||
using System;
|
||||
using FlaxEngine;
|
||||
|
||||
namespace Game
|
||||
namespace Game;
|
||||
|
||||
public static class Utilities
|
||||
{
|
||||
public static class Utilities
|
||||
public static ScopeProfiler ProfileScope(string eventName)
|
||||
{
|
||||
public static ScopeProfiler ProfileScope(string eventName)
|
||||
return new ScopeProfiler(eventName);
|
||||
}
|
||||
|
||||
public class ScopeProfiler : IDisposable
|
||||
{
|
||||
public ScopeProfiler(string eventName)
|
||||
{
|
||||
return new ScopeProfiler(eventName);
|
||||
Profiler.BeginEvent(eventName);
|
||||
}
|
||||
|
||||
public class ScopeProfiler : IDisposable
|
||||
public void Dispose()
|
||||
{
|
||||
public ScopeProfiler(string eventName)
|
||||
{
|
||||
Profiler.BeginEvent(eventName);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Profiler.EndEvent();
|
||||
}
|
||||
Profiler.EndEvent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user