unity how to display variable in debug log 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));