Esempio 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);
            }
        }
        private void InitActionData()
        {
            int objectId = _gameObjectController.baseAttribute.objectId;

            _gameObjectActionData = GetActionDatas(objectId);
        }