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 UnityEngine.EventSystems; | |
public class EventTriggerListener : UnityEngine.EventSystems.EventTrigger | |
{ | |
public delegate void VoidDelegate(GameObject go); | |
public delegate void VoidDelegatePointer(GameObject go, Vector2 pos); | |
public VoidDelegate onClick; | |
public VoidDelegate onDown; |
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 ParticelObjectPool : MonoBehaviour { | |
private ParticleSystem _ParticleSystem; | |
private ParticleSystemRenderer _ParticleSystemRenderer; | |
private ParticleSystem.Particle[] _Particles; | |
public GameObject _ParticelObject; | |
private GameObject _ObjectPool; |
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; | |
using UnityEngine.UI; | |
using UnityEngine.EventSystems; | |
using UnityEngine.Events; | |
public class CharacterCustomizableCreateManager : MonoBehaviour { | |
public List<Toggle> sexToggleGroup; | |
public Slider hairSlider; |
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; | |
public class CharacterAttribute : MonoBehaviour { | |
[Serializable] | |
public class CommonAttribute{ | |
public float lifeTime; | |
public GameObject groundedOn = null; | |
public GameObject lastgroundedLadderGround = null; |
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 DataSaveController : MonoBehaviour { | |
public int m_InstanceID; | |
// Use this for initialization | |
void Reset () { | |
m_InstanceID = gameObject.GetInstanceID(); | |
} | |
void OnValidate() { |
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 FirstPersonCamera : MonoBehaviour { | |
public Transform m_Player; | |
public Transform m_Target; | |
public float direction; | |
// Update is called once per frame | |
void Update () { |
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 DataManager : MonoBehaviour { | |
public delegate void DataLoaderHandler(); | |
public event DataLoaderHandler onLoaderComplete; | |
void Start(){ | |
DoSomething(); |
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 UnityEngine.EventSystems; | |
public class EventTriggerListener : UnityEngine.EventSystems.EventTrigger{ | |
public delegate void VoidDelegate (GameObject go); | |
public delegate void VoidDelegateData (GameObject go, PointerEventData eventData); | |
public VoidDelegate onClick; | |
public VoidDelegate onDown; | |
public VoidDelegate onEnter; | |
public VoidDelegate onExit; |
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 KeyboardEventListener : MonoBehaviour { | |
public delegate void KeyboardHandler(int dir); | |
public event KeyboardHandler onHorizontalMove; | |
public event KeyboardHandler onVerticalMove; | |
private KeyCode m_LeftArrowKey = KeyCode.LeftArrow; |
NewerOlder