Olezen / UnitySourceMovement

Source engine-like movement in Unity, based on Fragsurf by cr4yz (Jake E.).
MIT License
310 stars 47 forks source link

UPS counter #22

Closed BurAndBY closed 2 years ago

BurAndBY commented 2 years ago

Please add UPS counter.

PapersTheKingOfPapers commented 2 years ago

I've made a UPS Counter, its pretty simple.

You just need a UI Text element, edit abit of the SurfController.cs, Player object requires SurfCharacter.cs and have the player object be tagged "Player".

1. In SurfController.cs change on line 10

private ISurfControllable _surfer;

to

[HideInInspector] public ISurfControllable _surfer;

2. Add the UPSCounter to the canvas object and reference the Text element to it

  1. Enjoy UPSCounter.1.0.0.zip
PapersTheKingOfPapers commented 2 years ago

What, no thanks or anything?

BurAndBY commented 2 years ago

Thanks! Sorry, I did not notice this message.