private void ApplyCursorSettings() { for (int i = 0; i < m_cursorSettings.Length; ++i) { RTECursor cursor = m_cursorSettings[i]; m_editor.CursorHelper.Map(cursor.Type, cursor.Texture); } }
private static void AddCursorIfRequired(List <RTECursor> cursorSettings, KnownCursor cursorType, string name, string texture) { if (!cursorSettings.Any(c => c.Type == cursorType)) { RTECursor cursor = new RTECursor { Name = name, Type = cursorType, Texture = Resources.Load <Texture2D>(texture) }; cursorSettings.Add(cursor); } }