Пример #1
0
 void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
 }
Пример #2
0
//	private delegate void HideShowPanel();

	// Use this for initialization
	void Start ()
	{
		entityScrollManager = GetComponentInChildren<EntityScrollManager>();

		rectTrans = gameObject.GetComponent<RectTransform>();
		originPos =  rectTrans.localPosition;
	}