Esempio n. 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);
        }
Esempio n. 2
0
 private void OnEnable()
 {
     targetControlSurface = (IP_Airplane_ControlSurface)target;
 }