19 lines
538 B
C#
19 lines
538 B
C#
using UnityEngine;
|
|
|
|
public class MinimapStatrScript : MonoBehaviour
|
|
{
|
|
[SerializeField] private FollowTarget _followTarget;
|
|
[SerializeField] private FollowYRotation _followYRotation;
|
|
|
|
[SerializeField] private SelectCarGameScript _SelectCarGameScript;
|
|
|
|
public void Starter()
|
|
{
|
|
if (_SelectCarGameScript._CurrentCar != null)
|
|
{
|
|
_followTarget.target = _SelectCarGameScript._CurrentCar.transform;
|
|
_followYRotation.target = _SelectCarGameScript._CurrentCar.transform;
|
|
}
|
|
}
|
|
}
|