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; } }
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; } }