private void Awake() { myLookAt = GetComponent <LookAt>(); player = myLookAt?.CurrentTarget(); UI.GetComponent <TargetUI>().target = lTarget[targetsIndex]; }
private void Awake() { myLookAt = GetComponent <LookAt>(); player = myLookAt?.CurrentTarget(); UI.GetComponent <TargetUI>().target = lTarget[targetsIndex]; }