public ScriptNode(string path) : base(path) { Scripts = new Dictionary <string, Script>(); BoneIDs = new Dictionary <ulong, int>(); Attacks = new Attack[8];//possibly fighter specific value Grabs = new Catch[8]; for (int i = 0; i < Attacks.Length; i++) { Attacks[i] = Attack.Default(); } for (int i = 0; i < Grabs.Length; i++) { Grabs[i] = Catch.Default(); } ReadScriptFile(); }
public void Start() { if (CurrentAnimationName == null) { return; } for (int i = 0; i < Attacks.Length; i++) { Attacks[i] = Attack.Default(); } for (int i = 0; i < Grabs.Length; i++) { Grabs[i] = Catch.Default(); } MotionRate = 1f; if (Scripts.ContainsKey(CurrentAnimationName)) { Scripts[CurrentAnimationName].Start(); } }