Example #1
0
        IP_Airplane_ControlSurface[] FindAllControlSurfaces()
        {
            IP_Airplane_ControlSurface[] controlSurfaces = new IP_Airplane_ControlSurface[0];
            if (targetController)
            {
                controlSurfaces = targetController.transform.GetComponentsInChildren <IP_Airplane_ControlSurface>(true);
            }

            return(controlSurfaces);
        }
Example #2
0
 private void OnEnable()
 {
     targetControlSurface = (IP_Airplane_ControlSurface)target;
 }