Newer
Older
Hierarchical-Task-Network-Unity-3D / Assets / Scripts / ShopKeeper / Owner / ShopOwner.cs
using UnityEngine;

public class ShopOwner : Agent
{
    private ShopManager shopManager;

    // Start is called once before the first execution of Update after the MonoBehaviour is created
    void Start()
    {
        shopManager = ShopManager.Instance;
    }

    // Update is called once per frame
    void Update()
    {

    }

    public void ReceivePayment(float value) => shopManager.AddRevenue(value);
}