mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Simplified interpolations
This commit is contained in:
parent
23f1b2b0a5
commit
51cf44cde7
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user