fixed portal label

This commit is contained in:
MrGadget1024 2021-11-29 09:18:16 -05:00
parent 990bda659e
commit 40d551fe2f

View File

@ -29,7 +29,7 @@ public override void OnStartServer()
/// </summary>
public override void OnStartClient()
{
label.text = SceneManager.GetSceneByPath(destinationScene).name;
label.text = System.IO.Path.GetFileNameWithoutExtension(destinationScene);
}
// Note that I have created layers called Player(8) and Portal(9) and set them