Пример #1
0
 public void ShowFace(String path, FacePos pos)
 {
     switch (pos)
     {
         case FacePos.Left:
             roleLeft = resMgr.LoadTexture2D(path);
             break;
         case FacePos.Middle:
             roleMiddle = resMgr.LoadTexture2D(path);
             break;
         case FacePos.Right:
             roleRight = resMgr.LoadTexture2D(path);
             break;
     }
 }
Пример #2
0
 public void HideFace(FacePos pos)
 {
     switch (pos)
     {
         case FacePos.Left:
             roleLeft = null;
             break;
         case FacePos.Middle:
             roleMiddle = null;
             break;
         case FacePos.Right:
             roleRight = null;
             break;
     }
 }