예제 #1
0
 protected void updateLayerBasement(List <UnwrappedTileId> tileIDs)
 {
     foreach (UnwrappedTileId id in tileIDs)
     {
         basementGameObjects.Add(GameObject.Find(id.ToString()));
     }
     if (mapARLayerDup != null)
     {
         mapARLayerDup.destory();
         mapARLayerDup = new MapARLayerDup(this);
     }
 }
예제 #2
0
 protected IEnumerator DuplicationMovement(MapARLayerDup targetLayer, Vector3 movementDirection, float movementDistance, float movementTime, int mode)
 {
     //this.Lock = true;
     for (float t = 0.0f; t < movementTime;)
     {
         float td = Time.deltaTime;
         //targetLayer.moveUp(movementDistance * Time.deltaTime / movementTime);
         targetLayer.moveTowards(movementDirection, movementDistance * Time.deltaTime / movementTime);
         t += td;
         yield return(null);
     }
     if (mode == 2)
     {
         targetLayer.destory();
     }
     //this.Lock = false;
 }