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 using | |
using UnityEngine;//<-- Mainly these two for now | |
#if UNITY_EDITOR | |
using UnityEditor;//<-- Mainly these two for now | |
#endif | |
//using UnityEngine.UI; | |
//using UnityEngine.SceneManagement; | |
//using System; | |
//using System.Collections; |
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; | |
using System.Collections.Generic; | |
public class DoorLockManager : MonoBehaviour | |
{ | |
public List<bool> lockStates; | |
public Renderer rend; | |
//Realized by looking at it that each manager deals with 1 door and has 2 for: A = unlocked, B = locked. | |
public List<HoriDoorManager> doorManagers; |
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
"#"region Update in editor NOT in play mode.// Remove the " "'s | |
"#"if UNITY_EDITOR// Remove the " "'s | |
[UnityEditor.Callbacks.DidReloadScripts] | |
public static void OnRecompiledScripts() { | |
UnityEditor.EditorApplication.playmodeStateChanged -= PlayModeStateChanged; | |
UnityEditor.EditorApplication.playmodeStateChanged += PlayModeStateChanged; | |
PlayModeStateChanged(); | |
} |
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.UnityAwnsers.Help.Examples{ | |
///<summary> | |
/// A basic tutorial script on how to spawn a prefab via code. | |
///</summary> | |
public class SpawnPrefab: MonoBehaviour{ | |
[Header("Final Rendition - SpawnPrefab Script Class By Zereda-Games"),Space,Tooltip("The tag on the health text component we want to display on- 'Text Component'.[ Notes for Unity Awnsers.com] anyone who would like to change this post for future unity changes I give mediators full rights to do so.The script really is basic, and first write-up only took around 45 min. Editing took a few days but that's just because there are a ton of questions not many people see these post before they get buried. I made this with all of you by the comments for DanProd by request, it was a simple micro-challenge I took on to test my skill's. I started out on Udemy in 2015 and have been writing c# as much as i can for the past 3 years... If you are using this script in your kit, all i ask is to give the following |
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; | |
namespace UnityDevelopment.BowlMaster | |
{ | |
[RequireComponent (typeof(Ball))] | |
public class BallDragLaunch : 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
they are usually used for holding up a method on doing something | |
A little mini level manager for yeah ;) | |
public float WaitTime; | |
public int SceneIndexToLoad=4; | |
public bool DebugMode=false; | |
${ScriptName}$ 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
namespace ZeredaGameEngine | |
{ | |
public class ExampleScript:MonoBehaviour | |
{ | |
[Header("Public Settings:")] | |
[Tooltip ("The tag on the health text component we want to display on")] | |
public string | |
TagOnHealthText = "HealthTxt"; | |
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 System.Collections; | |
public class DrawOnGizmoDrawWireSphere : MonoBehaviour { | |
public float gizmoSize = 4; | |
public object gizmoedObject; | |
public void OnDrawGizmos() | |
{ |