public Move GetMove(Character user, Character target, string moveName) { GameObject gameObj = (GameObject)Resources.Load(path + moveName); MoveDef moveDef = gameObj.GetComponent <MoveDef>(); return(new Move(user, target, moveDef.moveName, moveDef.damage, moveDef.type, moveDef.range)); }
public ActionEventInfo GetEventInfo(long id) { if (MoveDef.EventDictionary == null) { MoveDef.LoadEventDictionary(); } if (MoveDef.EventDictionary.ContainsKey(id)) { return(MoveDef.EventDictionary[id]); } return(new ActionEventInfo(id, id.ToString("X"), "No Description Available.", null, null)); }