コード例 #1
0
    private void Awake()
    {
        RefreshUpgrades();

        health.SetHealth(maxHealth);

        stam.SetStaminaRegenAmount(_stamRegenAmount);
        stam.SetMaxStamina(maxStam);

        rb     = this.gameObject.GetComponent <Rigidbody2D>();
        _money = 0;
    }