コード例 #1
0
    protected override void Regenerate(Transform player)
    {
        EnergyController energy = player.GetComponent <EnergyController>();

        if (energy != null)
        {
            energy.Add(regenarationValue);
            Destroy(this.gameObject);
        }
    }