Example #1
0
 private void ClearController()
 {
     if (this.controller != null)
     {
         this.controller.RemoveElement(this);
     }
     this.controller = null;
 }
Example #2
0
        private void InitController()
        {
            UITintController componentInParent = base.GetComponentInParent <UITintController>();

            if (componentInParent != null)
            {
                componentInParent.AddElement(this);
            }
            this.controller = componentInParent;
        }