Summary
This class manages the instances of Player Avatars and ensures that they are deleted upon
the owner leaving the room.
- Namespace
- ASL
.PlayerSystem - Base Types
-
- PunBehaviour
graph TD
Base0["PunBehaviour"]-->Type
Type["AvatarManager"]
class Type type-node
Syntax
public class AvatarManager : PunBehaviour
Methods
Name | Value | Summary |
---|---|---|
Delete |
void |
Searches the scene for non active players, who have discconnected, and destory
the gameobjects associated with them.
|
OnApplicationQuit |
void |
Functions as networked alternative to the OnDestroy function.
|
On |
void |
Handler function that will delete the avatar of another player when they disconnect.
|