- Home /
Separating two strings
Hi,
I need to separate two string into one. I found old answer but it isn't working:
var timeBluFormated = Mathf.Floor(timeBlu % 60).ToString + (timeBlu - Mathf.Floor(timeBlu % 60)*60).ToString;
Is showing me this error:
BCE0051: Operator '+' cannot be used with a left hand side of type 'function(): String' and a right hand side of type 'function(): String'.
Could someone please help me?
Comment
Best Answer
Answer by whydoidoit · Mar 21, 2013 at 08:28 PM
You mean "joining two strings"
You're nearly there!
var timeBluFormatted = Mathf.Floor(timeBlu % 60).ToString() + (timeBlu - Mathf.Floor(timeBlu % 60)*60).ToString();