Commit df988ee2 authored by lllyasviel's avatar lllyasviel

fix

parent df3e0620
......@@ -307,6 +307,7 @@ public class CardDescription : Servant
int currentLabelIndex = 0;
int currentCardIndex = 0;
int eachLine = 0;
float monitorHeight = 0;
void handleMonitorArea(List<gameCard> list,string hint)
{
......@@ -343,8 +344,9 @@ public class CardDescription : Servant
if (monitor.gameObject.activeInHierarchy)
{
int newEach = (int)((monitor.width - 12f) / 44f);
if (newEach != eachLine)
if (newEach != eachLine || monitorHeight != monitor.height)
{
monitorHeight = monitor.height;
eachLine = newEach;
realizeMonitor();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment