// Use this for initialization void Start() { BFSCredentials = GameObject.FindObjectOfType <BFSMesh> (); //Get the matrix created by bfs if (BFSCredentials.isGenerated) { map = BFSCredentials.matrix; } }
// 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"); } }