/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */ public static void Switch(int sceneID) { if (currentIndex == sceneID || loading) { return; } Calendar.Enable = false; currentIndex = sceneID; coroutine = Coroutines.Start(load_level(currentIndex)); }
public static void TransversePoint(Vector3 from, Vector3 to, float speed = 1f) { endTransversePoint(); cameraObject.transform.LookAt(from); transversePointCoroutine = Coroutines.Start(transversePointAsync(from, to, Time.time, speed, Vector3.Distance(from, to))); }
public static void TransversePosition(Vector3 from, Vector3 to, float speed = 1f) { endTransversePosition(); cameraObject.transform.position = from; transversePositionCoroutine = Coroutines.Start(transversePositionAsync(from, to, Time.time, speed, Vector3.Distance(from, to))); }