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