No Pixel Coins
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -70,7 +70,7 @@ TextureImporter:
|
||||
maxTextureSize: 64
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
textureCompression: 2
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
|
||||
@@ -157,7 +157,7 @@ MeshRenderer:
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: -996942129922571021, guid: cee4fb3a7beae5249b207eafcb7e0bff, type: 2}
|
||||
- {fileID: -996942129922571021, guid: 30b250cb342768045acde7309e218e46, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
@@ -201,8 +201,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: aaaaaaaa
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: cee4fb3a7beae5249b207eafcb7e0bff, type: 2}
|
||||
m_sharedMaterial: {fileID: -996942129922571021, guid: cee4fb3a7beae5249b207eafcb7e0bff, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 30b250cb342768045acde7309e218e46, type: 2}
|
||||
m_sharedMaterial: {fileID: -996942129922571021, guid: 30b250cb342768045acde7309e218e46, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
|
||||
@@ -54,6 +54,10 @@ public abstract class Player : MonoBehaviour
|
||||
protected void AddCoins(int amount)
|
||||
{
|
||||
coins += amount;
|
||||
if (coins < 0)
|
||||
{
|
||||
coins = 0;
|
||||
}
|
||||
textCoinsInfo.text = coins + "";
|
||||
PlayAnimation(AnimationType.Coin);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user