void OnEnable()
 {
     canvasWidth = canvas.GetComponent <RectTransform> ().sizeDelta.x;
     container1  = TemplateContainer.Init(this, 0);
     container2  = TemplateContainer.Init(this, 1);
     anim        = UIAnimator.AttachTo(gameObject);
 }
Exemplo n.º 2
0
 void OnEnable()
 {
     anim   = UIAnimator.AttachTo(gameObject);
     Loaded = false;
 }