private void DisplayTruckNotification() { if (truckComingState != TruckComingState.displayTruckNotification) { return; } // display the notification ("the truck is coming") GuideCanvasControl.FadeIn(truckNotification); //modify position and rotation of the display ModifyTruckNotificationTransform(); // move on the next state, when the player see the truck if (playerSawTruck()) { // start playing animation of the truck truckComingState = TruckComingState.truckIsComing; } }
private void DisplayPlayerPosNavigation() { // if the player is outside of the target zone, // display truck notification GuideCanvasControl.FadeIn(playerPosNavigation); }