예제 #1
0
        public static void AddStateComponent(PlayerEntity playerEntity)
        {
            var index     = PlayerComponentsLookup.State;
            var component = playerEntity.CreateComponent <StateComponent>(index);

            playerEntity.AddComponent(index, component);
        }