Skip to content

Instantly share code, notes, and snippets.

View codehoose's full-sized avatar

Sloan Kelly codehoose

View GitHub Profile
@codehoose
codehoose / GameSystems.cs
Created December 11, 2018 02:25
The `GameSystems` MonoBehaviour is the singleton and contains code to access the systems in the game from one location.
public class GameSystems : MonoBehaviour
{
private static GameSystems _instance;
public static GameSystems Instance
{
get
{
if (_instance == null)
{
public static class CloudFactory
{
public static ICloudService Create()
{
if (Application.platform == RuntimePlatform.WindowsPlayer)
return new SteamCloudService();
}
}
#include <iostream>
#include <WS2tcpip.h>
#include <string>
#include <sstream>
#pragma comment (lib, "ws2_32.lib")
using namespace std;
void main()
@codehoose
codehoose / BaseOsm.cs
Created February 10, 2020 00:36
Fix for new OSM files that contain 'm' in height data
using System;
using System.Xml;
using UnityEngine;
/*
Copyright (c) 2017 Sloan Kelly
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights