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
//Useful for generic pooling, autoincrement, creating pools. Everything Useful to pool | |
//I've made that for gameObjects but change it as you wish. | |
//Fell free to use it, you are awesome | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
using System; | |
public struct PoolHub | |
{ |
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 UnityEngine; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Quick tip: Don't use the '.' inside fileExt parameters (i.e. correct: 'exe' | incorrect: '.exe') | |
/// </summary> | |
public class DataController |
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; | |
/// <summary> | |
/// Non Monobehaviour Singleton Instance | |
/// </summary> | |
/// <typeparam name="T">Class to be Singleton</typeparam> | |
public class Singleton<T> where T : new() | |
{ | |
private static Lazy<T> lazyInstance = |
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; | |
using UnityEngine.SceneManagement; | |
/// <summary> | |
/// This class handles Singleton instance and managing. Just inherit from this and voyalla! | |
/// <para></para> | |
/// </summary> |