Skip to content

Instantly share code, notes, and snippets.

View RGSMS's full-sized avatar

Rômulo Gomes de Souza Marques dos Santos RGSMS

View GitHub Profile
@RGSMS
RGSMS / SortUtils.cs
Created April 17, 2021 16:47
My C# Sort Solution that work to Array and List
using System.Collections.Generic;
namespace RGSMS.Utils
{
public class SortUtils
{
public static void Sort(ref int[] collection, bool increase = true)
{
int limit = collection.Length-1;
int lastChangedIndex;
@RGSMS
RGSMS / Joystick.cs
Created November 24, 2017 02:11
My solution to a better work with plugin InControl
#region Namespaces
using InControl;
using UnityEngine;
#endregion
public class Joystick
{
// To Do:
// - Commands: Steam Controller Buttons / Wii U Buttons
// - Touch: PS4 / PS Vita / Wii U / Steam Controller