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.Reflection; | |
public class Configuration { | |
public const float musicVolume = 1.0f; | |
public const float sfxVolume = 1.0f; |
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 UnityEditor; | |
using System.Collections; | |
namespace Opendream { | |
[CustomEditor(typeof(MovingPlatform))] | |
public class InspectorEditor : Editor { | |
public override void OnInspectorGUI() { |
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; | |
namespace Opendream { | |
public class CameraBoundary : MonoBehaviour { | |
public Color faceColor = new Color(0f, 0f, 0f, 0f); | |
public Color outlineColor = new Color(1f, 1f, 1f); | |
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 ScenePopup : PropertyAttribute { | |
public bool required = false; | |
public ScenePopup() {} | |
public ScenePopup(bool required) { |
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 MyProperty : PropertyAttribute { | |
public int intValue = 33; | |
public float floatValue = 12.5f; | |
public bool boolValue = true; | |
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 SceneManager : MonoBehaviour { | |
private const string LOADING_LEVEL_KEY = "Loading Level"; | |
private static AsyncOperation operation; | |
public float delayBefore = 0.5f; | |
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; | |
namespace RutCreate { | |
[ExecuteInEditMode] | |
public class CameraLayout : MonoBehaviour { | |
public Vector2 referenceResolution = new Vector2(800f, 600f); |
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 StringExample { | |
private int intFromString; | |
private float floatFromString; | |
private bool boolFromString; | |
private string format = "Hi {Name} {Last}, I'm {Age} years old. I'm from {Country}."; | |
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 UnityEditor; | |
using System.Collections; | |
using Opendream.Layouts; | |
namespace Opendream { | |
public partial class CustomEditorWindow : EditorWindow { | |
[MenuItem("Window/Custom Editor", false, 2)] |