This file contains hidden or 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
#if UNITY_EDITOR | |
using UnityEditor; | |
using System.Reflection; | |
/// <summary> | |
/// Allows the game code for a short time to override the cursor lock behaviour even in the editor. | |
/// Usage: | |
/// // Call it like this after some input that should trigger capturing the cursor again. | |
/// #if UNITY_EDITOR | |
/// ForceGameViewCursorLock.AllowCursorLockOverrideForNSec(0.1f); |
This file contains hidden or 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; | |
namespace Kamgam.HitMe | |
{ | |
/// <summary> | |
/// A component that can be added to add a temporary callback for FixedUpdate.<br /><br /> | |
/// Useful if you have many similar objects (same class) but only a few of them need the | |
/// FixedUpdate callback. | |
/// </summary> | |
public class FixedUpdateProxy : MonoBehaviour |
This file contains hidden or 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
#if UNITY_EDITOR | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEditor.SceneManagement; | |
namespace Kamgam | |
{ | |
/// <summary> | |
/// Start With First Scene<br /> |
This file contains hidden or 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.Generic; | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
namespace Kamgam | |
{ | |
public static class TriangleSelector | |
{ | |
const float kMaxDistance = 1000f; |