Closed piscopancer closed 1 year ago
public void Teleport(Location location) { Actions.OnStartedTeleporting?.Invoke(location); Sequence teleportSQ = DOTween.Sequence(); teleportSQ.AppendInterval(3); teleportSQ.AppendCallback(delegate { LocationBase.gameObject.SetActive(false); LocationReactor.gameObject.SetActive(false); location.gameObject.SetActive(true); CurrentLocation = location; transform.SetPositionAndRotation(location.SpawnPoint.position, location.SpawnPoint.rotation); Actions.OnTeleported?.Invoke(location); }); }
Is it suggested to not work? What is inside append callback is causing an error
append callback
Is it suggested to not work? What is inside
append callback
is causing an error