Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. //class MovePlayer : ComponentSystem
  2. //{
  3. // struct Components
  4. // {
  5. // public PlayerMove player;
  6. // public Vector3 pos;
  7.  
  8. // }
  9. // protected override void OnUpdate()
  10. // {
  11. // Entities.WithAll<PlayerMove>().ForEach((Entity e) =>
  12. // {
  13. // // do stuff
  14. // float speed = 8f;
  15. // PlayerMove player = new PlayerMove();
  16. // player.transform.Translate(Vector3.forward * speed * Time.deltaTime);
  17. // });
  18. // }
  19.  
  20. //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement