// ------------------ static public TouchControlPanel GetRigPanel(InputRig rig) { if (rig == null) { return(null); } TouchControlPanel panel = rig.GetComponentInChildren <TouchControlPanel>(); return(panel); }