void SetupTarget() { if (lockedTarget != null) { shooting.OverrideSwitchTargets(lockedTarget); shooting.UpdateTargetTag(lockedTarget.tag); } else if (driver) { shooting.shouldUpdateTarget = true; if (riders[0].GetComponent <EnemyController> ()) { shooting.UpdateTargetTag("Player"); } else { shooting.UpdateTargetTag("Enemy"); } } if (shooting.targetTag != "Enemy") { tag = "Enemy"; } shooting.SetEnabled(true); }
protected override void SwitchTargets() { shooting.OverrideSwitchTargets(target); }