UnitController.EndButtonAction C# (CSharp) 메소드

EndButtonAction() 공개 메소드

public EndButtonAction ( ) : void
리턴 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);
    }