UnitController.EndButtonAction C# (CSharp) Method

EndButtonAction() public method

public EndButtonAction ( ) : void
return void
    public void EndButtonAction()
    {
        m_active = false;
        GetComponent<UnitGUIController>().DisableGUI();
        int replenishedAmt;
        if(!m_hasAttacked){
            replenishedAmt = GetComponent<APController>().ReplenishAP(0.4);
        }else{
            replenishedAmt = GetComponent<APController>().ReplenishAP(1);
        }
        m_engine.UnitTurnEnded(replenishedAmt);
    }