void Start() { self = this; GetComponent <Interpolate>().Disable(); next.onClick.AddListener(Next); prev.onClick.AddListener(Prev); scrollEvent = new UnityAction <Vector2>(delegate { scroll.verticalNormalizedPosition = 0; }); next_text = next.transform.GetChild(0).gameObject.GetComponent <Text>(); }
// Use this for initialization private void Awake() { if (self == null) { self = this; } else if (self != this) { Destroy(gameObject); } }