コード例 #1
0
    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;
    }
コード例 #2
0
 public static Player GetPlayer(Player.ID playerID)
 {
     return(_players[(int)playerID]);
 }