예제 #1
0
    // Use this for initialization
    void Start()
    {
        /*
         *      LAUNCHER SCRIPT:
         *      It's control rocket,
         *      it will determinate if rocket going to crash or not
         */

        thrustVector     = 0;
        launch           = false;
        control          = true;
        capsuleLaunched  = false;
        accelerate       = 0;
        capsuleScript    = capsule.GetComponent <capsuleScript>();
        capsuleRigidBody = capsule.GetComponent <Rigidbody>();
        crash            = false;
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     capsuleScript = capsule.GetComponent <capsuleScript>();
 }