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