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