示例#1
0
 public void WarpOut(Transform transformToWarp, string name)
 {
     if (name == "Top")
     {
         //Debug.Log("Warping from Top Warp of " + BlockTransform.gameObject.name + " to EntryPoint of " + TopExitTarget.BlockTransform.gameObject.name);
         TopExitTarget.Align(transformToWarp);
         transformToWarp.position = TopExitTarget.EntryPoint.position;
     }
     else if (name == "Bottom")
     {
         //Debug.Log("Warping from Bottom Warp of " + BlockTransform.gameObject.name + " to EntryPoint of " + BottomExitTarget.BlockTransform.gameObject.name);
         BottomExitTarget.Align(transformToWarp);
         transformToWarp.position = BottomExitTarget.EntryPoint.position;
     }
     PositionOff();
 }