Ejemplo n.º 1
0
 private void PrintAllValidSceneName()
 {
     string [] sceneList = SceneLookup.GetAllSceneString();
     foreach (var sceneName in sceneList)
     {
         PrintLog(sceneName);
     }
 }
    private void LoadCameraRange()
    {
        string[]   sceneList = SceneLookup.GetAllSceneString();
        string     scene     = "";
        GameObject cameraRange;
        Collider   collider;

        for (int i = 0; i < sceneList.Length; i++)
        {
            scene       = sceneList[i];
            cameraRange = GameObject.Find(scene);
            if (cameraRange != null)
            {
                collider = cameraRange.GetComponent <Collider>();
                m_moveRangeDic.Add(scene, collider);
            }
            else
            {
                m_moveRangeDic.Add(scene, null);
            }
        }
    }