FairyGUI.GComponent.AddController C# (CSharp) Method

AddController() public method

Adds a controller to the container.
public AddController ( FairyGUI.Controller controller ) : void
controller FairyGUI.Controller Controller object
return void
        public void AddController(Controller controller)
        {
            _controllers.Add(controller);
            controller.parent = this;
            ApplyController(controller);
        }

Usage Example

Example #1
0
 static public int AddController(IntPtr l)
 {
     try {
         FairyGUI.GComponent self = (FairyGUI.GComponent)checkSelf(l);
         FairyGUI.Controller a1;
         checkType(l, 2, out a1);
         self.AddController(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.GComponent::AddController