Exemplo n.º 1
0
        public ActionDataConfig(XmlElement element)
        {
            _map = new Dictionary <int, GameObjectActionData>();
            XmlNodeList list = element.GetElementsByTagName("GameObject");

            for (int i = 0; i < list.Count; i++)
            {
                GameObjectActionData data = new GameObjectActionData(list[i] as XmlElement);
                _map.Add(data.id, data);
            }
        }
Exemplo n.º 2
0
        private void InitActionData()
        {
            int objectId = _gameObjectController.baseAttribute.objectId;

            _gameObjectActionData = GetActionDatas(objectId);
        }