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.Collections.Generic; | |
using System; | |
public class EventBus | |
{ | |
private static EventBus instance = null; | |
public static EventBus Instance | |
{ |
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 UnityEditor.EditorTools; | |
using UnityEngine; | |
[EditorTool("Reset player prefs")] | |
public class ResetPlayerPrefsEditorTool : EditorTool | |
{ | |
[SerializeField] | |
Texture2D m_ToolIcon; | |
GUIContent m_IconContent; |
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.IO; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEditor.EditorTools; | |
using UnityEditor.SceneManagement; | |
using UnityEngine; | |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class GUIList<T> : MonoBehaviour where T : MonoBehaviour | |
{ | |
[Header("GUI List configuration")] | |
[SerializeField] T _itemPrefab; |
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
public class Singleton<T> : MonoBehaviour where T : Singleton<T> | |
{ | |
public static T get; | |
public void Awake() | |
{ | |
if (get == null) | |
{ | |
get = (T)this; | |
} |
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
""" | |
Changes added by ricardj: | |
-Import now done with tk prefix instead of using the wildcard import. | |
-Down movement starts at zero. | |
-Now up and down movement is cyclic. | |
-Added return function in order to use the autocomplete-listbox as a tag selector. With out leaving the keyboard the user is going to be able to write with autocomplete and select some tags fast. | |
-List height reimplemented to make it adapt to the number of matching words. It would be great to define a max listbox length and not to fix the listbox length from the begining. | |
""" | |
#from tkinter import * |