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 System; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Runtime.CompilerServices; | |
using System.Windows.Input; | |
using System.Windows.Threading; | |
using System.Collections.Generic; | |
namespace Ownskit.Utils | |
{ |
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 Hover : MonoBehaviour | |
{ | |
public float maxDistance, maxForce; | |
private Vector3 forceVector; | |
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
// GravityObject.cs | |
using UnityEngine; | |
using System.Collections; | |
[RequireComponent (typeof (Rigidbody))] | |
public class GravityObject : MonoBehaviour | |
{ | |
public float gravityModifier = 1.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.Collections; | |
[RequireComponent (typeof (BoxCollider))] | |
public class ContainerGravity : MonoBehaviour | |
{ | |
public float strength = 10.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
target.RotateAround (target.position, target.right, addedRotation); | |
bool lookingUp = Vector3.Angle (target.forward, Vector3.up) < Vector3.Angle (target.forward, Vector3.up * -1.0f); | |
float angle = Vector3.Angle (target.forward, Vector3.Cross (target.right, Vector3.up)); | |
if (angle > forwardAngleClamp) | |
{ | |
target.RotateAround (target.position, target.right, lookingUp ? angle - forwardAngleClamp : forwardAngleClamp - angle); | |
} |
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 Utilities | |
{ | |
/* ... */ | |
static void LogGameObject( GameObject gameObject, bool children ) | |
{ | |
Component[] components = gameObject.GetComponents( typeof( Component ) ); |
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
/* _______________________________________________________________________________________ | |
_____ ______ __ _ | |
|_ _| | ____| /_ || | _ _ _ SKAN (Suresh Kumar A N) | |
| | ___ ___ _ __ | |__ __ __ | || |_| | | | | | [email protected] | |
| | / __/ _ \| '_ \| __| \ \/ / | ||___| | | ' | | | |
_| || (_| (_) | | | | |____ > < | | | | | |__| | Created on : 13-May-2008 | |
|_____\___\___/|_| |_|______/_/\_\ |_|(_) |_| \.___/ Last Modified : 10-Aug-2012 | |
[ I C O N E X P L O R E R A N D E X T R A C T O R ] Version : 1.4u | |
_______________________________________________________________________________________ |
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.IO; | |
public class MultiScene | |
{ | |
[MenuItem ("File/Combine Scenes")] | |
static void Combine () | |
{ |
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 System; | |
public enum Colors | |
{ | |
aqua, | |
black, | |
blue, | |
brown, | |
cyan, | |
darkblue, |
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
//#define DEBUG_THREADING | |
using UnityEngine; | |
using System.Collections; | |
using System.Threading; | |
using System.Reflection; | |
public delegate IEnumerator MonitorCoroutine<T> (CoroutineData<T> data); |
OlderNewer