2 using System.Text.RegularExpressions;
6 namespace droid.Runtime.Utilities.ScriptableObjects {
10 [CreateAssetMenu(fileName =
"PlayerMotions",
11 menuName = ScriptableObjectMenuPath._ScriptableObjectMenuPath +
"PlayerMotions",
28 var copy = this._Motions;
30 for (var i = 0; i < copy.Length; i++) {
31 var actor = copy[i].
_Actor;
33 copy[i]._Actor = Regex.Replace(actor,
"[^\\w\\._]",
"");
36 var actuator = copy[i]._Actuator;
37 if (actuator != null) {
38 copy[i]._Actuator = Regex.Replace(actuator,
"[^\\w\\._]",
"");