void Awake() { if (_instance == null) { _instance = this; } }
// private delegate void HideShowPanel(); // Use this for initialization void Start () { entityScrollManager = GetComponentInChildren<EntityScrollManager>(); rectTrans = gameObject.GetComponent<RectTransform>(); originPos = rectTrans.localPosition; }