Simplified interpolations

This commit is contained in:
MrGadget1024 2021-09-24 07:21:46 -04:00
parent 23f1b2b0a5
commit 51cf44cde7
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ public class PlayerScore : NetworkBehaviour
void OnGUI()
{
GUI.Box(new Rect(10f + (index * 110), 10f, 100f, 25f), $"P{index}: {score.ToString("0000000")}");
GUI.Box(new Rect(10f + (index * 110), 10f, 100f, 25f), $"P{index}: {score:0000000}");
}
}
}

View File

@ -337,7 +337,7 @@ public void SetAssetId_GivesErrorIfOneExists()
// assign a guid
Guid guid2 = Guid.NewGuid();
LogAssert.Expect(LogType.Error, $"Can not Set AssetId on NetworkIdentity '{identity.name}' because it already had an assetId, current assetId '{guid1.ToString("N")}', attempted new assetId '{guid2.ToString("N")}'");
LogAssert.Expect(LogType.Error, $"Can not Set AssetId on NetworkIdentity '{identity.name}' because it already had an assetId, current assetId '{guid1:N}', attempted new assetId '{guid2:N}'");
identity.assetId = guid2;
// guid was changed
@ -358,7 +358,7 @@ public void SetAssetId_GivesErrorForEmptyGuid()
// assign a guid
Guid guid2 = new Guid();
LogAssert.Expect(LogType.Error, $"Can not set AssetId to empty guid on NetworkIdentity '{identity.name}', old assetId '{guid1.ToString("N")}'");
LogAssert.Expect(LogType.Error, $"Can not set AssetId to empty guid on NetworkIdentity '{identity.name}', old assetId '{guid1:N}'");
identity.assetId = guid2;
// guid was NOT changed