23 lines
455 B
C#
23 lines
455 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class TimeBonus : BaseItem
|
|
{
|
|
[SerializeField]
|
|
private int _timeBonus;
|
|
|
|
private vTimerCounter _timerCounter;
|
|
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
_timerCounter = FindObjectOfType<vTimerCounter>();
|
|
}
|
|
|
|
public override void Interact()
|
|
{
|
|
base.Interact();
|
|
_timerCounter.AddTime(_timeBonus);
|
|
}
|
|
} |