public virtual void HandleControllerChanged(Controller c) { for (int i = 0; i < 8; i++) { GearBase gear = _gears[i]; if (gear != null && gear.controller == c) gear.Apply(); } }
internal void ApplyController(Controller c) { int cnt = _children.Count; for (int i = 0; i < cnt; ++i) { GObject child = _children[i]; child.HandleControllerChanged(c); } }