public void Active_GUI_Unit() { if( m_State == GUI_UnitText01State.UnActive ) { m_State = GUI_UnitText01State.Initialization ; } }
// Update is called once per frame void Update () { switch( m_State ) { case GUI_UnitText01State.UnActive : break ; case GUI_UnitText01State.Initialization : CreateGUI_Unit_UnitIntagratyObject() ;// create gui ship ship intagraty object UpdateGUI_UnitHP() ; m_State = GUI_UnitText01State.Active ; break ; case GUI_UnitText01State.Active : UpdateGUI_UnitHP() ; break ; case GUI_UnitText01State.Closed : break ; } }