Skip to content

Instantly share code, notes, and snippets.

View kinifi's full-sized avatar

Christopher Figueroa kinifi

  • Apple
  • Sunnyvale, California
View GitHub Profile
@kinifi
kinifi / ignore.conf
Created January 18, 2017 02:52
a ignore file for your unity project on plasticscm
/SteamBuildUploader/ContentBuilder/content
/SteamBuildUploader/ContentBuilder/builder
/.vs
/Library/
/Temp/
/Obj/
/Build/
/Builds/
/Assets/AssetStoreTools*
@kinifi
kinifi / gist:6b9f69edcc0e9c12831935afd9698e29
Created February 27, 2017 00:49
general method to run commands
private void RunScript(string scriptPath, string arguments)
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = Path.GetFullPath(scriptPath);
startInfo.UseShellExecute = true;
startInfo.CreateNoWindow = false;
if (!string.IsNullOrEmpty(arguments))
startInfo.Arguments = arguments;
@kinifi
kinifi / playercontroller.cs
Created April 20, 2017 21:10
a 2D free movement playercontroller
/*
* playermovement.cs - attaches rigidbody onto gameobject in editor via RequireComponent, checks inputAxis via Input Axis Names (defaults to Horizontal, Vertical).
* Intention is to move a 2D sprite across the screen via Rigidbody2D
* All properties are private with defaults values. If you need to change a property use the methods to adjust them
* Note: This does not attach a collider or check colliders in anyway. That should be handled separately.
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@kinifi
kinifi / gist:63422d27ecab470fd0c8d1001e592357
Created July 5, 2017 19:24
Always on Top Code for OSX in Swift
Swift 3.0
window.level = Int(CGWindowLevelForKey(.floatingWindow))
window.level = Int(CGWindowLevelForKey(.maximumWindow))
@kinifi
kinifi / BuildPostProcessor.cs
Created October 19, 2017 23:25
Adds iOS Frameworks to Xcode project (on each Unity build).
//
// http://www.twitter.com/kinifi
//
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;