Ignition / PlayersGroup

Namespace Playniax.Ignition

Inherits from MonoBehaviour

Script can be found in Assets/Playniax/Framework/Ignition/Framework/System/Scripts (MonoBehaviour)/PlayersGroup.cs

Class PlayersGroup

Description

Whether the GameObject is 'marked' as a player or not.

PlayerControls and some of the AI and bullet spawners depend on it.

Public fieldsDescription
string id = "Player 1"Player id.

Public MethodsDescription
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.