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 UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public static class HotkeyTest | |
{ | |
[MenuItem("HotkeyTest/Hotkey test alt #&S")] | |
public static void TestWithAlt() | |
{ | |
Debug.Log("Alt+shift+S pressed"); |
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
public static class Util | |
{ | |
public static Vector3 Horizontal(this Vector3 v) | |
{ | |
return Vector3.ProjectOnPlane(v, Vector3.up); | |
} | |
public static bool InBetween(this float val, float a, float b) | |
{ | |
return (val < b && val > a) || (val < a && val > b); |
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 UnityEngine; | |
using System.Collections; | |
using System.IO; | |
using System.Runtime.Serialization; | |
using System.Xml.Serialization; | |
[Serializable] | |
public class ApplicationConfig | |
{ |
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.Collections; | |
using System.Collections.Generic; | |
using Pathfinding; | |
using UnityEngine; | |
public class MeshExtractor | |
{ | |
public MeshExtractor() | |
{ | |
// Assuming a valid recast graph exists... |
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.Collections; | |
using UnityEngine; | |
public class CoroutineStarter : MonoBehaviour | |
{ | |
private static readonly MonoBehaviour coroutineStarter; | |
public static Coroutine StartCoroutine(IEnumerator function) | |
{ | |
return coroutineStarter.StartCoroutine(function); | |
} |
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; | |
public static class Utility | |
{ | |
#region Rotation / Local Rotation | |
public static void SetRotation(this GameObject go, Quaternion rot) | |
{ | |
go.transform.rotation = rot; | |
} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include "mpi.h" | |
#include "mkl.h" | |
#include <math.h> | |
#define DEBUG | |
#define N 500 | |
char** |