Пример #1
0
    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));
    }
Пример #2
0
        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));
        }