public bool IsSetBadState(E_BadState state) { BadStateUnit unit = null; for (int i = 0; i < bslist.Count; i++) { if (bslist[i].IsIt(state)) { unit = bslist[i]; } } if (unit != null && Time.time < unit.ClearTime) { return(true); } return(false); }
public void GetBadState(E_BadState state, float howMuch) { BadStateUnit unit = null; for (int i = 0; i < bslist.Count; i++) { if (bslist[i].IsIt(state)) { unit = bslist[i]; } } if (unit == null) { MyDebug.Log("배드 스테이트를 찾지 못함" + state); } else { unit.SetBadState(Time.time + howMuch); } }