Check out example codes for "C# Into To Tring Debug.Log". It will help you in understanding the concepts better.

Code Example 1

Debug.Log("WeaponNum = " + WeaponNum);
//or
Debug.Log("WeaponNum = " + WeaponNum.ToStiring());
//or
Debug.Log(string.Format("WeaponNum = {0}", WeaponNum));

Learn ReactJs, React Native from akashmittal.com