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
| // https://www.hackerrank.com/contests/quora-haqathon/challenges/archery | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <math.h> | |
| #include <stdlib.h> | |
| #define min(a, b) (a < b ? a : b) | |
| #define max(a, b) (a > b ? a : b) |
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; | |
| public class DebugPauseEditor | |
| : MonoBehaviour | |
| { | |
| public static void Pause() | |
| { | |
| var target = "UnityEditor.EditorApplication"; | |
| var assemblies = System.AppDomain.CurrentDomain.GetAssemblies(); |
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
| // | |
| // extracted from http://dotween.demigiant.com/ | |
| // | |
| using UnityEngine; | |
| public class SimpleEase | |
| : MonoBehaviour | |
| { | |
| static float _PiOver2 = Mathf.PI / 2.0f; |
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.Reflection; | |
| public class ScriptReloadBroadcast | |
| { | |
| #if UNITY_EDITOR | |
| [UnityEditor.Callbacks.DidReloadScripts] | |
| static void OnScriptsReloaded() | |
| { | |
| var flags = |
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 UnityEditor; | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| [InitializeOnLoad] | |
| public class EditorCameraSpeed | |
| : EditorWindow |
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; | |
| using System.Reflection; | |
| public class SingletonMonoBehaviour<T> | |
| : MonoBehaviour | |
| { | |
| #if UNITY_EDITOR | |
| [UnityEditor.Callbacks.DidReloadScripts] | |
| public static void OnScriptReload() |
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; | |
| using System.Collections.Generic; | |
| public class MeshFilterVariants | |
| : MonoBehaviour | |
| { | |
| public Mesh[] Meshes; | |
| public void Start() |
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; | |
| using Valve.VR; | |
| public class SteamPlayAreaResizer | |
| : MonoBehaviour | |
| { | |
| private bool resized = false; | |
| public void Update() |
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; | |
| public class CoroutineBugTest | |
| : MonoBehaviour | |
| { | |
| public IEnumerator OuterReturnIEnumerator(string s) | |
| { | |
| Debug.LogFormat("Outer: enter: {0}", s); | |
| yield return Inner(s); |
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; | |
| using DG.Tweening; | |
| public class ToolBallWhip | |
| : ToolCore | |
| { | |
| private Rigidbody rigidBody; | |
| private Vector3 prevPosition; |