void Start() { self = GetComponent <TurretConfig>(); self.owner = transform.parent.parent.GetComponentInParent <PlayerConfig>(); model = self.model; targeting = self.targeting; view = self.view; InvokeRepeating("UpdateTarget", self.updateRate, self.updateRate); }
void Awake() { model = GetComponent <TurretModel>(); targeting = GetComponent <TurretTargeting>(); view = GetComponent <TurretView>(); }
void Start() { startingRotation = transform.localRotation; turretTargeting = GetComponentInParent <TurretTargeting>(); }