void Start() { FlightView view = (FlightView)GameObject.FindObjectOfType(typeof(FlightView)); // setting cameras if (Indicate.CockpitCamera.Length > 0) { for (int i = 0; i < Indicate.CockpitCamera.Length; i++) { if (Indicate.CockpitCamera [i] != null) { view.AddCamera(Indicate.CockpitCamera [i].gameObject); } } } }