Beispiel #1
0
 void Get_ID_Script(ID_Control_CS tempScript)
 {
     idScript = tempScript;
     if (idScript.isPlayer)
     {
         thisAudioListener.enabled = true;
         thisCamera.enabled        = true;
     }
     idScript.mainCamScript = this;
 }
 void Get_ID_Script(ID_Control_CS tempScript)
 {
     idScript = tempScript;
     if (idScript.isPlayer)
     {
                         #if UNITY_ANDROID || UNITY_IPHONE
         isTracking = false;
                         #endif
     }
     else
     {
         isTracking = false;
     }
     idScript.turretScript = this;
 }
Beispiel #3
0
        public void Receive_ID(ID_Control_CS idScript)
        {
            // Store the components in the lists.
            TankProp tankProp = new TankProp();

            tankProp.bodyRigidbody  = idScript.GetComponentInChildren <Rigidbody> ();
            tankProp.bodyTransform  = tankProp.bodyRigidbody.transform;
            idScript.storedTankProp = tankProp;
            // Add the tank to tankList.
            tankList.Add(idScript);
            // Send currentID (0).

            /*if (idScript.id == 0) {
             *      idScript.isPlayer = true;
             * } else {
             *      idScript.isPlayer = false;
             * }*/
        }
 void Get_ID_Script(ID_Control_CS tempScript)
 {
     idScript      = tempScript;
     bodyRigidbody = idScript.storedTankProp.bodyRigidbody;
 }
Beispiel #5
0
 void Get_ID_Script(ID_Control_CS tempScript)
 {
     idScript = tempScript;
 }
Beispiel #6
0
 void Get_ID_Script(ID_Control_CS tempScript)
 {
     tempScript.gunCamScript = this;
 }
 void Get_ID_Script(ID_Control_CS tempScript)
 {
     idScript      = tempScript;
     bodyTransform = idScript.storedTankProp.bodyTransform;
     Set_DamageText();
 }