View InternalSington.txt
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> |
View UnderstandingUnity.cs
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.SceneManagment; | |
using System.Collection; | |
using System.Collection.Generic; | |
namespace ZG | |
{ | |
//[MenuItem ("testingPhase/${FileName} ")] | |
public class ${FileName} : MonoBehaviour | |
{ |
View Enums.cs
public enum PartTypes | |
{ | |
Disabled, | |
ShipArmor, | |
BeamGenerator, | |
BeamCharger, | |
EnergyShield, | |
ShieldGenerator, | |
MissileMagazine, | |
Specials, |
View Singleton.cs
using UnityEngine; | |
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour | |
{ | |
private static T _instance; | |
private static object _lock = new object(); | |
public static T Instance | |
{ |
View MyClass.cs
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; | |
View AppQuit.cs
using UnityEngine; | |
using System.Collections; | |
public class AppQuit : MonoBehaviour, IQuittable { | |
public void OnQuit() { | |
Debug.Log ("AppQuit.Quit"); | |
Application.Quit (); | |
} | |
} |
View Enums.cs
namespace ZeredaGamesEngine.Core.Libraries.Games.Pokemon | |
{ | |
#region Pokemon | |
/// <summary> | |
/// Pokemon Enums. | |
/// </summary> | |
[System.Serializable] | |
public enum PokemonPerminantBoosts | |
{ |
View 78-C# Script-NewBehaviourScriptAdvanced.cs.txt
#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) |
View 80-C# Script-NewBehaviourScript.cs.txt
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class #SCRIPTNAME# : MonoBehaviour { | |
public static #SCRIPTNAME# instance = null; | |
public #SCRIPTNAME# GetInstance (){ | |
instance = this; |
NewerOlder