Example #1
0
 void Start()
 {
     // --- Fisicas
     speed     = new Vector3();
     rotation  = new Vector3();
     phenomena = new Vector3();
     // --- Componentes
     airplanePhysical  = GetComponent <AirplanePhysical>();
     airplaneOnButton  = onButton.GetComponent <AirplaneOnButton>();
     airplanePropeller = propeller.GetComponent <AirplanePropeller>();
     functionBank      = gameObject.AddComponent <FunctionBank>();
     // --- Protocolo de despegue
     motorOn = false;
     takeoff = false;
 }
 void Start()
 {
     horInclination   = 0;
     verInclination   = 0;
     airplanePhysical = GetComponent <AirplanePhysical>();
 }
 void Start()
 {
     potency          = 0;
     airplanePhysical = GetComponent <AirplanePhysical>();
 }