public static void TurnGroupOff(CanvasGroup[] _canvases) { foreach (CanvasGroup canvas in _canvases) { GuideCanvasControl.TurnOff(canvas); } }
private void TruckIsComing() { if (truckComingState != TruckComingState.truckIsComing) { return; } // turn truck notification off GuideCanvasControl.TurnOff(truckNotification); // when animation of the truck is finished, move on the next state if (truckAction.hasFinished) { truckComingState = TruckComingState.checkPlayerPosition; } }