Among Us API- Release V0.2
Version 0.2 - Among us 2021.4.12s and 2021.4.14s
Changelog & Features :
- The version has been updated
- Added Arrow Management.
- Modified Cooldown Button, constructor added for byte[] and Sprite and rework internal thing.
- Added TextMeshPro file utils, for created TMP easily.
- Role Management is also reworked and work nows correctly.
- Kill Management as been modified.
- Vent Management as been modified
Role API :
- Bugs fixs: The roles were created twice.
- Kill management as been added, and has variables and methods to use it, see the documentation
- Addition of the variable CanVent Which defines if the role can use the vents.
- Added RefreshTask method, which allows to redefine the color spot.
It allows dynamic displays of information. - Many bug fixes. and optimization
- New events as been added :
Event Name | Description |
---|---|
OnLocalAttempKill | When a kill is attempted on the local game, an event is triggered. The original operation of killing a player is cancelled, it is up to you to define it with this event. By default if this event is not set, it keeps the normal kill operation. |
OnMurderPlayer | This is an event that is triggered when a player kills another player. This event is done after the act and takes in parameter the killer and the killed. |
OnPlayerDisconnect | This event is triggered when a player disconnects from the game in any way |
Arrow Management
This new part allows you to manage arrows, Dynamic or static.
The dynamic arrows point to an object that can move. and is updated every x seconds customizable, 0 allows to define all ticks
Static arrows point to a fixed coordinate that never changes.
Methods are available to manage the arrows to look on the documentation.
TextMeshPro (TMP)
The TextRenderer has been replaced by the TextMeshPro in recent versions of among us.
I decided to create a utility file to create TextMeshPro from scratch.
A simple function linked to all GameObjects allows to add text.
Cooldown Button and Player Button
The Cooldown Button does not accept embedded resources anymore, and accepts either byte[] or Sprite.
Player Button has been modified to support TMP, and has an extra argument in InitPlayerButton, allowing to detect if the person doesn't want to select a player, the order of the arguments has been modified.