public void SetStateOff() // 꺼지는 메소드 함수 { if (CurrentState != null) { CurrentState.EXit(); } CurrentState = LightState_OFF.GetInstance(); CurrentState.Enter(); }
public static LightState_OFF GetInstance() { if (I == null) { I = new LightState_OFF(); return(I); } else { return(I); } }