From 2b7cc196f422cb9090573cae2fec2d06c4550a54 Mon Sep 17 00:00:00 2001 From: teascade Date: Mon, 19 Aug 2019 01:55:08 +0300 Subject: [PATCH] Make logerror better --- Assets/Scripts/Environment/SpriteChanger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Environment/SpriteChanger.cs b/Assets/Scripts/Environment/SpriteChanger.cs index 11c7624..1caf017 100644 --- a/Assets/Scripts/Environment/SpriteChanger.cs +++ b/Assets/Scripts/Environment/SpriteChanger.cs @@ -17,7 +17,7 @@ namespace Saltosion.OneWeapon.Environment { public bool SetSprite(int Index) { if (Index < 0 || Index >= Sprites.Count) { - Debug.LogError("Cannot change sprite to an index that does not exist!"); + Debug.LogError("Cannot change sprite to an index that does not exist! (" + Index + ") for " + gameObject.name); return false; } Sprite.sprite = Sprites[Index];