PageCurl curler; //we store here the reference to the PageCurl component void Awake() { curler = GetComponent<PageCurl>(); if (automatic) { //Start the first page flip curler.Flip(); } }
// Use this for initialization void Start () { fadepanel = uiroot.GetComponent<UIPanel>(); curler = curlroot.GetComponent<PageCurl>(); fadein = true; }