public FigureStructure(BoardFirureId firureId, FigureType initialType, FigureType currentType, FigureTeamType teamType) { FirureId = firureId; InitialType = initialType; CurrentType = currentType; TeamType = teamType; }
public GameObject GetInitFigure( BoardFirureId firureId, FigureType initialType, FigureType currentType, FigureTeamType teamType ) { FirureId = firureId; InitialType = initialType; CurrentType = currentType; TeamType = teamType; if (teamType == FigureTeamType.black) { figureMesh.GetComponent <MeshRenderer>().material = defaultBlackMaterial; } else { figureMesh.GetComponent <MeshRenderer>().material = defaultWhiteMaterial; } return(gameObject); }