This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace NeroTrader | |
{ | |
public class PivotPointResult | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static string ApplicationName = "Google Sheets API .NET Quickstart"; | |
string url = "https://docs.google.com/spreadsheets/d/1FTbqxgf1qdgXdPIQFgOg9cjzHP827S2gkpGy1kwJ6Cw/edit#gid=0"; | |
public fbEth() | |
{ | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float extension | |
public static float Remap(this float value, float from1, float to1, float from2, float to2,bool isClamped= false) | |
{ | |
if(isClamped) | |
{ | |
value = Mathf.Clamp(value,from1,to1); | |
} | |
return (value - from1) / (to1 - from1) * (to2 - from2) + from2; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.codeproject.com/Articles/259621/Google-Image-Search-Client-in-Csharp-and-WPF | |
c# api search | |
https://developers.google.com/api-client-library/dotnet/get_started | |
image url http://stackoverflow.com/questions/3615800/download-image-from-the-site-in-net-c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public static class UnityExtensionMethods | |
{ | |
#region go_utils | |
public static void Activate(this GameObject go) | |
{ | |
go.SetActive(true); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public static class CameraExtensions { | |
public static void LayerCullingShow(this Camera cam, int layerMask) { | |
cam.cullingMask |= layerMask; | |
} | |
public static void LayerCullingShow(this Camera cam, string layer) { | |
LayerCullingShow(cam, 1 << LayerMask.NameToLayer(layer)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Seek : MonoBehaviour | |
{ | |
private Transform pointer; | |
public float speed = 1.0f; | |
public float mass = 1.0f; | |
private Vector2 curVelocity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
// Camera cage from camera to near plane in editor. | |
public class DrawCameraViewFrustrum : MonoBehaviour | |
{ | |
public Color clr = new Color(0.1f, 0.14f, 0.8f, 0.5f); | |
public void OnDrawGizmos() | |
{ | |
Gizmos.color= clr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class Bezier3D : MonoBehaviour | |
{ | |
public Vector3 start = new Vector3(0, 0, 0); | |
public Vector3 end = new Vector3(1, 1, 0); | |
public Vector3 handle1 = new Vector3(0, 1, 0); | |
public Vector3 handle2 = new Vector3(1, 0, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private IEnumerator waitThenCallback(float time, Action callback) | |
{ | |
yield return new WaitForSeconds(time); | |
callback(); | |
} | |
void Start() | |
{ | |
splashScreen.show(); |