Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //class MovePlayer : ComponentSystem
- //{
- // struct Components
- // {
- // public PlayerMove player;
- // public Vector3 pos;
- // }
- // protected override void OnUpdate()
- // {
- // Entities.WithAll<PlayerMove>().ForEach((Entity e) =>
- // {
- // // do stuff
- // float speed = 8f;
- // PlayerMove player = new PlayerMove();
- // player.transform.Translate(Vector3.forward * speed * Time.deltaTime);
- // });
- // }
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement