Код: Выделить всё
[System.Serializable]
public class CameraSettings
{
public GameObject CameraFollow;
public CamerasProperties[] camerasProperties;
public bool flightMode;
public float flightSpeed;
public float timer;
}
[System.Serializable]
public class CamerasProperties
{
public GameObject Camera;
public float timeToTravel;
public Ease easeType;
public float pauseBefore;
}
public CameraSettings cameraSettings;
GameObject cameraToMove;
private void Start()
{
cameraToMove = GameObject.FindGameObjectWithTag("MainCam").gameObject;
StartCoroutine(DoCameraStuff());
}
int currentNum = 0;
IEnumerator DoCameraStuff()
{
if (currentNum
Подробнее здесь: [url]https://stackoverflow.com/questions/78351123/how-to-allow-dotween-to-start-a-tween-on-the-same-gameobject-while-one-is-alread[/url]