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
void Awake(){ | |
AwakeSingleton(); | |
} | |
#region Internal Singleton | |
[Header("Internal Singleton:"), Tooltip("If True: this becomes a singleton.")] | |
public bool SetDontDestroyOnLoad = true; | |
public bool DebugMode = true; | |
/// <summary> |
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 UnityEngine.UI; | |
using UnityEngine.SceneManagment; | |
using System.Collection; | |
using System.Collection.Generic; | |
namespace ZG | |
{ | |
//[MenuItem ("testingPhase/${FileName} ")] | |
public class ${FileName} : 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
public enum PartTypes | |
{ | |
Disabled, | |
ShipArmor, | |
BeamGenerator, | |
BeamCharger, | |
EnergyShield, | |
ShieldGenerator, | |
MissileMagazine, | |
Specials, |
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; | |
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour | |
{ | |
private static T _instance; | |
private static object _lock = new object(); | |
public static T 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 UnityEngine; | |
[HelpURL("http://unity3d.college")] | |
[SelectionBase] | |
public class MyClass : MonoBehaviour | |
{ | |
[Header("Text Attributes"), TextArea, Tooltip("A string using the TextArea attribute"), SerializeField] | |
private string | |
descriptionTextArea; | |
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; | |
public class AppQuit : MonoBehaviour, IQuittable { | |
public void OnQuit() { | |
Debug.Log ("AppQuit.Quit"); | |
Application.Quit (); | |
} | |
} |
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
namespace ZeredaGamesEngine.Core.Libraries.Games.Pokemon | |
{ | |
#region Pokemon | |
/// <summary> | |
/// Pokemon Enums. | |
/// </summary> | |
[System.Serializable] | |
public enum PokemonPerminantBoosts | |
{ |
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
#region Licencing | |
/* | |
ZeredaGamesEngine | |
Author: | |
Zereda Games | |
Thamas Bell : thamasbell@hotmail.com (Depricated, but have ownership - Locked out.) | |
thamasbell@gmail.com (Personal email A) | |
thamasabell@gmail.com (Personal email B) |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class #SCRIPTNAME# : MonoBehaviour { | |
public static #SCRIPTNAME# instance = null; | |
public #SCRIPTNAME# GetInstance (){ | |
instance = this; |
NewerOlder