Пример #1
0
    // Use this for initialization
    void Start()
    {
        BFSCredentials = GameObject.FindObjectOfType <BFSMesh> ();

        //Get the matrix created by bfs
        if (BFSCredentials.isGenerated)
        {
            map = BFSCredentials.matrix;
        }
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        BFSCredentials = GameObject.FindObjectOfType <BFSMesh> ();

        //Get the matrix created by bfs
        if (BFSCredentials.isGenerated)
        {
            map = BFSCredentials.matrix;
        }
        else
        {
            throw new UnityException("Failed to generate mesh");
        }
    }