public CreatureState(string in_typeName, UnityEngine.GameObject parent) { typeName = in_typeName; //get jumpHeight "creatures." + typeName + ".jump_height"; //get maxMove "creatures." + typeName + ".max_move"; weaponArray = new System.Collections.Generic.List <WeaponData>(); //weaponArray.Add(new WeaponData(){weapon=TWeapon.TSlingPan }); creatureStateBody = new CreatureStateBody(in_typeName, parent); creatureStateHud = new CreatureStateHud(); creatureStateInput = new CreatureStateInput(); }
public void StartOfUpdate() { creatureStateHud = new CreatureStateHud(); creatureStateInput = new CreatureStateInput(); }