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