fix: remove obsolete warning

pull/289/head
mob-sakai 2023-12-23 14:48:37 +09:00
parent 5c3232faf3
commit 5d5eb34590
2 changed files with 4 additions and 0 deletions

View File

@ -667,7 +667,9 @@ namespace Coffee.UIExtensions
private void UpdateTracker()
{
#pragma warning disable CS0618 // Type or member is obsolete
if (!enabled || !autoScaling || autoScalingMode != AutoScalingMode.Transform)
#pragma warning restore CS0618 // Type or member is obsolete
{
_tracker.Clear();
}

View File

@ -406,7 +406,9 @@ namespace Coffee.UIExtensions
GetComponents(typeof(IMeshModifier), s_Components);
for (var i = 0; i < s_Components.Count; i++)
{
#pragma warning disable CS0618 // Type or member is obsolete
((IMeshModifier)s_Components[i]).ModifyMesh(workerMesh);
#pragma warning restore CS0618 // Type or member is obsolete
}
s_Components.Clear();