/// <summary> /// Called when a surface has been created /// </summary> public void OnSurfaceCreated(Surface surface) { if (mReconstructionBehaviour) { mReconstructionBehaviour.AssociateSurface(SurfaceTemplate, surface); } }
public void OnSurfaceCreated(Surface surface) { Debug.Log("---Created Surface"); if (mReconstructionBehaviour != null) { mReconstructionBehaviour.AssociateSurface(SurfaceTemplate, surface); } }
public void OnSurfaceCreated(Surface surface) { //shows an example of how you could get a handle on the surface game objects to perform different game logic if (mReconstructionBehaviour) { mReconstructionBehaviour.AssociateSurface(SurfaceTemplate, surface); SurfaceAbstractBehaviour behaviour; if (mReconstructionBehaviour.TryGetSurfaceBehaviour(surface, out behaviour)) { behaviour.gameObject.name = "Surface " + surface.ID; } } }