示例#1
0
        private void CrewInteract()
        {
            ResourcesManager resourcesManager = GameManager.m_instance.m_resourcesManager;

            if (resourcesManager.GetWoodCount() >= m_woodRepairCost)
            {
                ModHp(10);

                resourcesManager.AddWood(-m_woodRepairCost);
            }
        }
示例#2
0
        private void Repair()
        {
            ResourcesManager resourcesManager = GameManager.m_instance.m_resourcesManager;

            if (resourcesManager.GetWoodCount() >= m_woodRepairCost)
            {
                ModHp(10);
                ResetCharge();

                resourcesManager.AddWood(-m_woodRepairCost);
            }
        }