This file contains hidden or 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 CameraOrbit : MonoBehaviour | |
{ | |
public float angularSpeed = 180; | |
public float zoomSpeed = 1; | |
public float sensibility = 6; | |
Vector2 prevMousePosition; |
This file contains hidden or 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
<canvas id="stage"></canvas> |
This file contains hidden or 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
// C# built-in event system used in Unity3D | |
// | |
// Author: Bartek Drozdz | |
// Reference: http://www.everyday3d.com/blog/index.php/2010/10/04/c-events-and-unity3d/ | |
using UnityEngine; | |
public class EventDispatcher : MonoBehaviour | |
{ | |
public delegate void EventHandler(GameObject e); |
This file contains hidden or 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; | |
[CustomEditor (typeof(Trigger))] | |
[CanEditMultipleObjects()] | |
public class TriggerEditor : Editor | |
{ | |
private SerializedObject obj; | |
private SerializedProperty radius; |
This file contains hidden or 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 MoveTransform : IActivated { | |
public Transform objectMoved; | |
public Movements activatedPos, deactivatedPos; | |
[System.Serializable] | |
public class Movements { |
NewerOlder