public void Display() { // Color prevColor = GUI.color; // GUI.color = Color.red; if (m_isAnimating) { m_animator.Display(new Rect(Position.x - textureSize / 2.0f, Position.y - textureSize / 2.0f, textureSize, textureSize)); } else { GUI.DrawTexture(new Rect(Position.x - textureSize / 2.0f, Position.y - textureSize / 2.0f, textureSize, textureSize), m_texture); } //GUI.color = prevColor; }