Пример #1
0
 void Start()
 {
     speed          = new Vector3();
     rotation       = new Vector3();
     gravity        = 0.001f;
     potency        = 0;
     horInclination = 0;
     verInclination = 0;
     speedMax       = (mass / 2) / mass;
     runningWind    = new Vector3();
     functionBank   = gameObject.AddComponent <FunctionBank>();
 }
Пример #2
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;
 }
Пример #3
0
 void Start()
 {
     airplaneController = GetComponent <AirplaneController>();
     functionBank       = gameObject.AddComponent <FunctionBank>();
 }