Ignition / PlayersGroup
Namespace
Playniax.IgnitionInherits from
MonoBehaviourScript can be found in
Assets/Playniax/Framework/Ignition/Framework/Core/Scripts (MonoBehaviour)/PlayersGroup.cs
Class PlayersGroup
DescriptionWhether the GameObject is 'marked' as a player or not.
PlayerControls and some of the AI and bullet spawners depend on it.
Public fields | Description |
---|
string id = "Player 1" | Player id. |
Public Methods | Description |
---|
static int Count() | Returns the active players . |
static GameObject Get(string id) | Returns the player by id. |
static GameObject GetFirstAvailable(GameObject locked = null) | Returns the first player. |
static List GetList() | Returns all players. |
static GameObject GetRandom(GameObject locked = null) | Returns a random player. |
static bool IsMember(GameObject gameObject) | Returns whether player is a member. |