Skip to content

Commit 129fa1d

Browse files
committed
Add API info in Ghost
1 parent e419031 commit 129fa1d

File tree

3 files changed

+327
-0
lines changed

3 files changed

+327
-0
lines changed

Assets/Scripts/Robot/RobotCompatibilityCheck.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ void Update()
3939
transform.ActivateChildren(true);
4040
resolution.text = resolution_str;
4141
needUpdate = false;
42+
TextCompatibilityModifier modifier = explanation.transform.GetComponent<TextCompatibilityModifier>();
43+
if (modifier != null)
44+
{
45+
modifier.ModifyCompatibilityText();
46+
}
4247
}
4348
}
4449

Assets/Scripts/UI/TextCompatibilityModifier.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@ public void ChangeText(string stringToChange)
4040
newText = stringToChange.Replace(robotVersion, robot_api);
4141
needUpdate = true;
4242
}
43+
44+
public void ModifyCompatibilityText()
45+
{
46+
ChangeText(textToChange.text);
47+
}
4348
}
4449
}

0 commit comments

Comments
 (0)