private void updateSec() { if (TimeState.instance.getHour() >= 7 && TimeState.instance.getHour() < 8) { moveAi.SetDestination(0); } if (TimeState.instance.getHour() >= 10 && current == 0) { coffee.SetActive(true); current = 1; } if (TimeState.instance.getHour() >= 14 && TimeState.instance.getHour() < 15) { moveAi.SetDestination(1); } if (TimeState.instance.getHour() >= 15 && current == 1) { moveAi.SetDestination(2); br8Key.SetActive(true); current = 2; } if (TimeState.instance.getHour() >= 20) { moveAi.SetDestination(3); } }
private void updateSec() { if (TimeState.instance.getHour() >= 17 && current == 0) { moveAi.SetDestination(0); //light current = 1; } if (TimeState.instance.getHour() >= 18 && current == 1) { moveAi.SetDestination(1); //door current = 2; } if (TimeState.instance.getHour() == 18 && TimeState.instance.getMinute() >= 30 && current == 2 && PlayerState.instance.GarageLock == true) { moveAi.SetDestination(2); //back current = 3; } if (TimeState.instance.getHour() >= 19 && current == 3) { PlayerState.instance.canRecord = true; gun.SetActive(true); moveAi.SetDestination(0); current = 4; } if (TimeState.instance.getHour() >= 19 && TimeState.instance.getMinute() >= 40 && current == 4) { PlayerState.instance.canRecord = false; moveAi.SetDestination(1); current = 5; } }
private void updateSec() { if (TimeState.instance.getHour() >= 19) { moveAi.SetDestination(1); } }
private void updateSec() { if (TimeState.instance.getHour() >= 11 && TimeState.instance.getHour() < 12) { if (current == 0) { moveAi.SetDestination(0); current = 1; } if (!agent.pathPending) { if (agent.remainingDistance <= agent.stoppingDistance) { if (!agent.hasPath || agent.velocity.sqrMagnitude == 0f) { Destroy(powerKey); } } } } if (TimeState.instance.getHour() >= 12 && TimeState.instance.getMinute() >= 10 && TimeState.instance.getHour() < 13) { moveAi.SetDestination(1); } if (TimeState.instance.getHour() >= 14 && TimeState.instance.getHour() < 16) { if (current == 1) { moveAi.SetDestination(2); current = 2; } if (!agent.pathPending) { if (agent.remainingDistance <= agent.stoppingDistance) { if (!agent.hasPath || agent.velocity.sqrMagnitude == 0f) { Destroy(tp); } } } } if (TimeState.instance.getHour() >= 16 && TimeState.instance.getMinute() >= 30) { moveAi.SetDestination(3); } if (TimeState.instance.getHour() >= 18) { moveAi.SetDestination(0); } }
private void updateSec() { if (PlayerState.instance.PdPower == true) { dialogueObj.SetActive(true); moveAi.SetDestination(0); } else { dialogueObj.SetActive(false); moveAi.SetDestination(1); } }
private void updateSec() { if (TimeState.instance.getHour() >= 11 && TimeState.instance.getHour() < 12) { moveAi.SetDestination(1); } if (TimeState.instance.getHour() >= 12 && TimeState.instance.getMinute() >= 30) { moveAi.SetDestination(0); } }
private void updateSec() { if (TimeState.instance.getHour() >= hour[count] && TimeState.instance.getHour() <= hour[count + 1]) { moveAi.SetDestination(count); count++; } if (TimeState.instance.getHour() >= 19 && TimeState.instance.getHour() < 20 && PlayerState.instance.raid) { moveAi.SetDestination(6); } if (TimeState.instance.getHour() >= 21 && TimeState.instance.getHour() < 22) { moveAi.SetDestination(6); } }
public void Unlock() { if (TimeState.instance.getHour() >= 20) { if (playerState.items[itemID] == true) { moveAi.SetDestination(0); Destroy(gameObject); } else { dialogueAfter.StartDialogue(); } } else { dialogueBefore.StartDialogue(); } }