Beispiel #1
0
	void Start () {
		thisTransform = this.transform ;
		turretScript = thisTransform.GetComponentInParent < Turret_Control_CS > () ;
		if ( turretScript == null ) {
			Debug.LogError ( "Cannon_Base cannot find Turret_Control_CS." ) ;
			Destroy ( this ) ;
		}
		currentAng = thisTransform.localEulerAngles.x ;
	}
 void Start()
 {
     thisTransform = this.transform;
     turretScript  = thisTransform.GetComponentInParent <Turret_Control_CS> ();
     if (turretScript == null)
     {
         Debug.LogError("Cannon_Base cannot find Turret_Control_CS.");
         Destroy(this);
     }
     currentAng = thisTransform.localEulerAngles.x;
 }