public void RestoreStatus(float restore, string type) { StatusKeeper status = null; if (GetStatusKeeper(type, out status)) { status.ChangeValue(restore, StatusSeekType.Positive); } }
public void ReduceStatus(float reduce, string type) { StatusKeeper status = null; if (GetStatusKeeper(type, out status)) { status.ChangeValue(reduce, StatusSeekType.Negative); if (status.Value < 0f) { //we're taking away from something that's already really low status.Ping = true; } } }