Exemple #1
0
        public static Locomotion alloc(LocomotionData p_locomotionData)
        {
            Locomotion l_instance = new Locomotion();

            l_instance.LocomotionData     = p_locomotionData;
            l_instance.LocomotionSystemV2 = LocomotionSystemV2.alloc(l_instance);
            return(l_instance);
        }
Exemple #2
0
        public static LocomotionSystemV2 alloc(Locomotion p_locomotion)
        {
            LocomotionSystemV2 l_instance = new LocomotionSystemV2();

            l_instance.LocomotionComponent = p_locomotion;
            LocomotionSystemV2Container.LocomotionSystemComponents.Add(l_instance);
            return(l_instance);
        }
Exemple #3
0
        public override void Initialize(Entity p_entity, RuntimeObjectRootComponent p_runtimeObjectRootComponent)
        {
            Locomotion l_locomotion = Locomotion.alloc(new LocomotionData()
            {
                Speed = TravelSpeed
            });

            EntityComponent.add_component <Locomotion>(p_entity, l_locomotion);
        }