// Acquire Rotors and Set them up public bool Setup(Quadcopter.Main M) { _Rotors = GameObject.FindObjectsOfType(typeof(Rotor)) as Rotor[]; if (_Rotors == null) { Debug.LogError("You need at least one rotor for the quadcopter to setup"); return(false); } for (int i = 0; i < _Rotors.Length; i++) { _Rotors[i].Setup(M); } return(true); }
// Setup public void Setup(Quadcopter.Main m) { _Main = m; _Settings = m._Settings; _IsInit = true; }