Skip to content

Commit 495cf6f

Browse files
committed
Remove virtual functions
1 parent fcaf682 commit 495cf6f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Runtime/TextureDrawer.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ protected virtual void OnEnable()
156156
}
157157
}
158158

159-
protected virtual void Update()
159+
private void Update()
160160
{
161161
#if UNITY_EDITOR
162162
if (!(Application.isPlaying || renderSettings.updateInEditor)) {
@@ -193,12 +193,6 @@ public Texture2D Draw()
193193
return texture;
194194
}
195195

196-
/// <summary>
197-
/// Sets the pixels of the texture.
198-
/// </summary>
199-
/// <param name="texture">The texture to set the pixels on.</param>
200-
protected abstract void SetPixels(Texture2D texture);
201-
202196
/// <summary>
203197
/// Applies the texture to the renderer material.
204198
/// </summary>
@@ -234,6 +228,12 @@ private void SetTransformScale()
234228
}
235229
}
236230

231+
/// <summary>
232+
/// Sets the pixels of the texture.
233+
/// </summary>
234+
/// <param name="texture">The texture to set the pixels on.</param>
235+
protected abstract void SetPixels(Texture2D texture);
236+
237237
}
238238

239239
}

0 commit comments

Comments
 (0)