void ISushiState.OnClick() { SushiLife--; core.onTableSushiClick.OnNext(SushiLife); if (SushiLife <= 0) { core.ChangeState(new EmptySushiState(core)); } }
void ISushiState.OnClick() { var putSucceed = core.Holder.TryPut(core.transform); if (putSucceed) { core.ChangeState(new TableSushiState(core)); } core.onLaneSushiClick.OnNext(putSucceed); }