public void refresh() unity code example Example: void Update void Update() { //checked every frame }