void Start()
    {
        thisTransform = this.transform;
        turretScript  = thisTransform.root.gameObject.GetComponentInChildren <Turret_Control>();

        if (turretScript)
        {
            target = turretScript.MyOpponent;
        }
    }
Ejemplo n.º 2
0
 void Start()
 {
     thisTransform = this.transform;
     rootTransform = thisTransform.root;
     turretScript  = rootTransform.gameObject.GetComponentInChildren <Turret_Control>();
 }