Skip to content

Instantly share code, notes, and snippets.

View kinifi's full-sized avatar

Christopher Figueroa kinifi

  • Apple
  • Sunnyvale, California
View GitHub Profile
using UnityEngine;
using System.Collections;
public class Movement : MonoBehaviour {
//the Axis of the joystick
private float horAxis, vertAxis;
//components
private Rigidbody _rigid;
using UnityEngine;
using System.Collections;
using Steamworks;
public class SubmitToLeaderboard : MonoBehaviour {
//the enum to select
public Leaderboard mLeaderboardToSubmit;
// Default to Global Leaderboards.
private ELeaderboardDataRequest m_eRequestType = ELeaderboardDataRequest.k_ELeaderboardDataRequestGlobal;
public bool getBool(string key)
{
//make the key not case sensitive
key = lowerCaseValue(key);
//check if the key exists
if (m_GameData.ContainsKey(key))
{
bool returnedBool = (bool)m_GameData[key];
are they getting this error? UnityEditor.Scripting.Compilers.MicrosoftCSharpCompiler.FillNETCoreCompilerOptions (WSASDK wsaSDK, System.Collections.Generic.List`1 arguments, System.String& argsPrefix) (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/MicrosoftCSharpCompiler.cs:186)
UnityEditor.Scripting.Compilers.MicrosoftCSharpCompiler.StartCompiler () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/MicrosoftCSharpCompiler.cs:303)
UnityEditor.Scripting.Compilers.ScriptCompilerBase.BeginCompiling () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:47)
​[11:50]
Error building Player because scripts had compiler errors
@kinifi
kinifi / AutoSave.cs
Created November 3, 2015 19:28
Auto Save the current open Unity 3D level every 30 seconds
/* Created by Chris Figueroa - @Kinifi
* Create a script called AutoSave.cs
*/
using UnityEngine;
using UnityEditor;
using System.Collections;
public class AutoSave : EditorWindow {