/// <summary> /// Pay the rent /// </summary> public void ButtonPressPayRent() { GameWorldMananger.ReturnInstance().WriteToLog("Player: " + m_Player.name + " Payed $" + m_PropertyNode.OnRent(m_Player) + " to " + m_PropertyNode.m_Owner.name + " rent for staying at: " + m_Player.m_CurrentNode.name); m_PropertyNode.m_Owner.TransferMoney(m_Player, m_PropertyNode.OnRent(m_Player)); m_CurrentPropertyState = PropertyManagmentStates.CloseWindow; }
/// <summary> /// Close the window /// </summary> public void CloseWindow() { GameWorldMananger.ReturnInstance().WriteToLog("Player: " + m_Player.name + " Did not interact with: " + m_Player.m_CurrentNode.name); m_CurrentPropertyState = PropertyManagmentStates.CloseWindow; }
/// <summary> /// Causes the property to upgrade /// </summary> public void ButtonPressPurchaseUpgrade() { GameWorldMananger.ReturnInstance().WriteToLog("Player: " + m_Player.name + " Upgraded: " + m_Player.m_CurrentNode.name); m_CurrentPropertyState = PropertyManagmentStates.CloseWindow; }