code cleanup

This commit is contained in:
Mikhail 2024-11-08 17:22:10 +08:00
parent 68b5abc9ee
commit 6bde3981dd

View File

@ -8,7 +8,7 @@ namespace DCFApixels.DragonECS
{ {
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
using Unity.IL2CPP.CompilerServices; using Unity.IL2CPP.CompilerServices;
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
internal static class ThreadRunner internal static class ThreadRunner
@ -168,10 +168,10 @@ namespace DCFApixels.DragonECS
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
// Unity IL2CPP performance optimization attribute. // Unity IL2CPP performance optimization attribute.
namespace Unity.IL2CPP.CompilerServices namespace Unity.IL2CPP.CompilerServices
{ {
using System; using System;
internal enum Option internal enum Option
{ {
NullChecks = 1, NullChecks = 1,
ArrayBoundsChecks = 2, ArrayBoundsChecks = 2,