public void InitializeFigure() { if (ObjFile != null && ObjFile.ContainsKey((int)ObjState.Common)) { Texture = ObjFile[(int)ObjState.Common].Image; } CurrentDirection = Dir; CurrentFrameIndex += Frame; }