- Home /
Best Answer
Answer by DaveA · Mar 20, 2011 at 05:36 AM
var s : String = "Damage:21";
var parts : String[] = s.Split(":"[0]);
var damage = float.Parse(parts[1]);
Your answer
Follow this Question
Related Questions
Change the name of a toolbar button by clicking it. How? 1 Answer
Equivalent to PHP strstr() in Unity to find a string? 2 Answers
Change object texture using String [Java] 1 Answer
How do you check if a string has already been removed from a generic list? 1 Answer
How to find a variable with a string? 2 Answers