Example #1
0
 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>();
 }
Example #2
0
    // Use this for initialization

    private void Awake()
    {
        if (self == null)
        {
            self = this;
        }
        else if (self != this)
        {
            Destroy(gameObject);
        }
    }