コード例 #1
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;
         }
     }
 }