Exemplo n.º 1
0
        /* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

        public static void Switch(int sceneID)
        {
            if (currentIndex == sceneID || loading)
            {
                return;
            }
            Calendar.Enable = false;
            currentIndex    = sceneID;
            coroutine       = Coroutines.Start(load_level(currentIndex));
        }
Exemplo n.º 2
0
 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)));
 }
Exemplo n.º 3
0
 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)));
 }