log var unity code example
Example: C# Into To Tring Debug.Log
Debug.Log("WeaponNum = " + WeaponNum);
//or
Debug.Log("WeaponNum = " + WeaponNum.ToStiring());
//or
Debug.Log(string.Format("WeaponNum = {0}", WeaponNum));
Debug.Log("WeaponNum = " + WeaponNum);
//or
Debug.Log("WeaponNum = " + WeaponNum.ToStiring());
//or
Debug.Log(string.Format("WeaponNum = {0}", WeaponNum));