void Start() { //result = GetComponent<FinalResult>(); //biulder = GetComponent<AnimationBiulder>(); biulder = new AnimationBiulder(); Data.LoadChar(); Data.LoadWords(); }
public UnitAnimation mapper(string[,,] symbol) { // split the string string[] temp = new string[18]; int place = 0; for (int i = 0; i < symbol.GetLength(0); i++) { for (int j = 0; j < symbol.GetLength(1); j++) { for (int k = 0; k < symbol.GetLength(2); k++) { temp[place] = symbol[i, j, k]; place++; } } } if (temp[0] != null) { char[] ca = temp[0].ToCharArray(); string str = ""; foreach (var c in ca) { str += GetConf(c); } biulder = biulder.RightHandConfigration(str); } if (temp[1] != null) { biulder = biulder.RightHandOrientation(temp[1]); } if (temp[2] != null) { biulder = biulder.RightArmPosition(GetPos(temp[2])); } if (temp[3] != null) { biulder = biulder.RightHandTransition(temp[3]); } if (temp[6] != null) { char[] ca = temp[6].ToCharArray(); string str = ""; foreach (var c in ca) { str += GetConf(c); } biulder = biulder.RightHandConfigrationFinal(str); } if (temp[7] != null) { biulder = biulder.RightHandOrientationFinal(temp[7]); } if (temp[8] != null) { biulder = biulder.RightArmPositionFinal(GetPos(temp[8])); } if (temp[9] != null) { char[] ca = temp[9].ToCharArray(); string str = ""; foreach (var c in ca) { str += GetConf(c); } biulder = biulder.LeftHandConfigration(str); } if (temp[10] != null) { biulder = biulder.LeftHandOrientation(temp[10]); } if (temp[11] != null) { biulder = biulder.LeftArmPosition(GetPos(temp[11])); } if (temp[12] != null) { biulder = biulder.LeftHandTransition(temp[12]); } if (temp[15] != null) { char[] ca = temp[15].ToCharArray(); string str = ""; foreach (var c in ca) { str += GetConf(c); } biulder = biulder.LeftHandConfigrationFinal(str); } if (temp[16] != null) { biulder = biulder.LeftHandOrientationFinal(temp[16]); } if (temp[17] != null) { biulder = biulder.LeftArmPositionFinal(GetPos(temp[17])); } return(biulder.Build()); }