Esempio n. 1
0
    // Children of this class should all have a Startup() method that rolls numbers for their respective gatherable resources

    private void OnTriggerEnter(Collider other)  // make supplies provided by this resource location gatherable and enable mining button
    {
        if (other.tag == "Player")
        {
            MainManager.Inventory.SetSuppliesGatherable(suppliesProvided);
            MainManager.UI.EnableGatheringPanel();
            SetGatheringPointTitleAndElements();
            if (GetComponentInChildren <MapIcon>() != null)
            {
                MapIcon gathering_point_icon = GetComponentInChildren <MapIcon>();
                gathering_point_icon.EnableMapIcon();
            }
        }
    }