I am from Spain and I have been working in game development for 5+ years. I am
using UnityEngine; | |
public abstract class Singleton<T> : MonoBehaviour where T : MonoBehaviour | |
{ | |
public static T Instance { get; private set; } | |
protected virtual void Awake() | |
{ | |
CheckSingleton(); | |
} |
using UnityEditor; | |
using UnityEngine; | |
public class OrthographicCamFitterWindow : EditorWindow | |
{ | |
int _ReferenceHeight = 1080; | |
int _PixelsPerUnit = 100; | |
Camera _Camera; | |
string _IntroText = "<size=14><b>Notes</b></size>\n" + |
#if UNITY_STANDALONE || UNITY_EDITOR // Code specific to PC platforms (Windows, macOS, Linux) | |
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.InputSystem; | |
using UnityEngine.InputSystem.UI; | |
using UnityEngine.Events; | |
public class SpringJointDrag2D_Mouse : MonoBehaviour | |
{ | |
/* Fallback SpringJoint2D config */ |
using UnityEditor; | |
using UnityEditor.Localization; | |
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using UnityEngine; | |
using UnityEngine.Localization; | |
using UnityEngine.Localization.Settings; |
using System.Collections.Generic; | |
using System.IO; | |
using UnityEngine; | |
/* | |
TODO: If we are in WebGL or in android, we must do a WebRequest to get the data. | |
TODO: Make it Async for the loading. | |
*/ | |
public static class StreamingAssetsImageLoader |