private void OnTriggerEnter(Collider col) { if (col.CompareTag("Player")) { if (Gamestatus_script.Statusnum == GameStatus.Gamestatus.warning) { Countdown_script.Countinit(); } else if (Gamestatus_script.Statusnum == GameStatus.Gamestatus.caution) { Gamestatus_script.Statusnum = GameStatus.Gamestatus.warning; Countdown_script.Countinit(); } else { Gamestatus_script.Statusnum = GameStatus.Gamestatus.warning; } } }
private void OnTriggerEnter(Collider col) { if (col.CompareTag("Player")) { if (col.GetComponent <PlayerControl>().GetisMoving() == true) { if (Gamestatus_script.Statusnum == GameStatus.Gamestatus.warning) { Countdown_script.Countinit(); } else if (Gamestatus_script.Statusnum == GameStatus.Gamestatus.caution) { Gamestatus_script.Statusnum = GameStatus.Gamestatus.warning; Countdown_script.Countinit(); } else { Gamestatus_script.Statusnum = GameStatus.Gamestatus.warning; } } } }