Files
Temp.BattleRoyale.Map.Unity/Assets/GSpawn - Level Designer/Scripts/Commands/ObjectEraseCommands.cs
CortexCore a379dc5cd3 1
2024-05-13 01:28:33 +08:00

31 lines
941 B
C#

#if UNITY_EDITOR
namespace GSpawn
{
public class ObjectErase_EnableEraseCursor : PluginCommand
{
protected override void onEnter()
{
if (GSpawn.active.levelDesignToolId == LevelDesignToolId.ObjectErase)
ObjectErase.instance.activeToolId = ObjectEraseToolId.Cursor;
}
}
public class ObjectErase_EnableEraseBrush2D : PluginCommand
{
protected override void onEnter()
{
if (GSpawn.active.levelDesignToolId == LevelDesignToolId.ObjectErase)
ObjectErase.instance.activeToolId = ObjectEraseToolId.Brush2D;
}
}
public class ObjectErase_EnableEraseBrush3D : PluginCommand
{
protected override void onEnter()
{
if (GSpawn.active.levelDesignToolId == LevelDesignToolId.ObjectErase)
ObjectErase.instance.activeToolId = ObjectEraseToolId.Brush3D;
}
}
}
#endif