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
/* | |
================================================= | |
===================== INFO ====================== | |
================================================= | |
Here is my useful mysql to json code: | |
mysql tip: | |
select "|"tour |
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; | |
using Extensions; | |
namespace Occlusion | |
{ | |
public class Area : MonoBehaviour | |
{ |
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
// | |
// Mono.CSharp CSharpCodeCompiler Class implementation | |
// | |
// Authors: | |
// Sean Kasun ([email protected]) | |
// Gonzalo Paniagua Javier ([email protected]) | |
// | |
// Copyright (c) Novell, Inc. (http://www.novell.com) | |
// |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<!-- | |
this utility is used to start server, to automatically set -mod folders and -port | |
this utility was designed to be right next to the <executable> | |
you can configure it in this config file, all [varName] is replaced with contents of matching <varName></varName> | |
replacing is done in few iterations to propagate dependencies | |
has two inbuild variables |
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
/* | |
Implementation of ISynchronizeInvoke for Unity3D game engine. | |
Can be used to invoke anything on main Unity thread. | |
ISynchronizeInvoke is used extensively in .NET forms, it's is elegant and quite useful in Unity as well. | |
I implemented it so i can use it with System.IO.FileSystemWatcher.SynchronizingObject. | |
help from: http://www.codeproject.com/Articles/12082/A-DelegateQueue-Class | |
example usage: https://gist.github.com/aeroson/90bf21be3fdc4829e631 | |
version: aeroson 2017-07-13 (author yyyy-MM-dd) |
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
/* | |
Simple class to gather and iterate over all namespaces in all AppDomain.CurrentDomain.GetAssemblies(). | |
It builds a tree of NamespaceNode. | |
To generate it and to get root use NamespaceNode.Root. | |
license: WTFPL (http://www.wtfpl.net/) | |
author: aeroson | |
*/ | |
using System; |
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
/* | |
A simple little editor extension to copy and paste all components | |
Help from http://answers.unity3d.com/questions/541045/copy-all-components-from-one-character-to-another.html | |
license: WTFPL (http://www.wtfpl.net/) | |
author: aeroson | |
*/ | |
using UnityEngine; | |
using UnityEditor; |
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
/* | |
Simple generic object pooler, mostly useful for Unity. | |
Example usages shows some Unity specific use cases. | |
Entries are created (createObj) as needed with GetNext method. | |
Then once they run out of live they are set to dead (setDeadObj). | |
If they are dead for timeToDestroyOnceDead seconds they are destroyed (destroyObj). | |
If they are needed again before their timeToDestroyOnceDead timer runs out they are set alive (setAliveObj). | |
license: WTFPL (http://www.wtfpl.net/) | |
author: aeroson |
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
/// <summary> | |
/// Implements basic equals methods and bool converions, similar to UnityEngine.Object | |
/// </summary> | |
public class BaseObject | |
{ | |
public override bool Equals(object obj) | |
{ | |
return AreObjectsEqual(this, obj as BaseObject); | |
} | |
public override int GetHashCode() |
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.Internal; | |
using UnityEngine; | |
using System.Runtime.Serialization; | |
using System.Xml.Serialization; | |
/// <summary> | |
/// Quaternions are used to represent rotations. | |
/// A custom completely managed implementation of UnityEngine.Quaternion | |
/// Base is decompiled UnityEngine.Quaternion |
OlderNewer