예제 #1
0
    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;
        }
    }
예제 #2
0
 private void DisplayPlayerPosNavigation()
 {
     // if the player is outside of the target zone,
     // display truck notification
     GuideCanvasControl.FadeIn(playerPosNavigation);
 }