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; | |
/// <summary> | |
/// Provides utility methods for inverting transforms in Unity. | |
/// </summary> | |
public static class TransformInverter | |
{ | |
/// <summary> | |
/// Inverts the local transform of the target based on the source transform. | |
/// Equivalent to the LocalInvert method in the original 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
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
using System.Collections.Generic; | |
public class TextDumpEditorWindow : EditorWindow | |
{ | |
readonly List<string> inputFolders = new(); | |
string outputFilePath = "Assets/code-dump.txt"; | |
string fileExtensions = "cs"; // Default to .cs files |
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; | |
namespace Util { | |
// ========================================================================= | |
public class EventListener<T> where T: GameEvent { | |
public T receivedEvent; |
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 RandomShake : MonoBehaviour { | |
public float duration = 0.5f; | |
public float magnitude = 0.1f; | |
public bool test = false; | |