public override void UpdateAppearance() { faceTexture = cg.GetCardFaceTexture((Card)mc.ModelData); backTexture = cg.GetCardBackTexture((Card)mc.ModelData); rend.materials[1].mainTexture = faceTexture; // TODO Assign cardback }
public override void UpdateAppearance() { faceTexture = cg.GetCardFaceTexture(db.ModelData.VisibleFaceCard); backTexture = cg.GetCardBackTexture(db.ModelData.VisibleBackCard); rend.materials[1].mainTexture = faceTexture; // TODO Assign cardback AdjustSize(); }