protected override void PostInitializeComponent() { LogicWorld logic_world = GetLogicWorld(); var enumerator = m_index2id.GetEnumerator(); while (enumerator.MoveNext()) { int skill_index = enumerator.Current.Key; int skill_cfgid = enumerator.Current.Value; CreateSkill(skill_index, skill_cfgid); } m_locomotor_cmp = ParentObject.GetComponent(LocomotorComponent.ID) as LocomotorComponent; m_listener_context = SignalListenerContext.CreateForEntityComponent(logic_world.GenerateSignalListenerID(), ParentObject.ID, m_component_type_id); ParentObject.AddListener(SignalType.StartMoving, m_listener_context); }