コード例 #1
0
 /// <summary>
 /// Called when a surface has been created
 /// </summary>
 public void OnSurfaceCreated(Surface surface)
 {
     if (mReconstructionBehaviour)
     {
         mReconstructionBehaviour.AssociateSurface(SurfaceTemplate, surface);
     }
 }
コード例 #2
0
    public void OnSurfaceCreated(Surface surface)
    {
        Debug.Log("---Created Surface");

        if (mReconstructionBehaviour != null)
        {
            mReconstructionBehaviour.AssociateSurface(SurfaceTemplate, surface);
        }
    }
コード例 #3
0
 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;
         }
     }
 }