public void Instatiate(Player.ID playerID, float speed, float maxHealth, float maxStamina, float staminaRegenRate, bool useMouse = false) { player = Players.GetPlayer(playerID); _speed = speed; _maxHealth = maxHealth; _maxStamina = maxStamina; _staminaRegenRate = staminaRegenRate; _useMouse = useMouse; _health = _maxHealth; _stamina = _maxStamina; }
public static Player GetPlayer(Player.ID playerID) { return(_players[(int)playerID]); }