예제 #1
0
 public static void TurnGroupOff(CanvasGroup[] _canvases)
 {
     foreach (CanvasGroup canvas in _canvases)
     {
         GuideCanvasControl.TurnOff(canvas);
     }
 }
 private void InitUIs()
 {
     if (guideCanvases.Length < 1)
     {
         return;
     }
     GuideCanvasControl.TurnGroupOff(guideCanvases);
 }
예제 #3
0
    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;
        }
    }
예제 #4
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;
        }
    }
예제 #5
0
 public void InitUI()
 {
     CanvasGroup[] canvases = { truckNotification, playerPosNavigation };
     GuideCanvasControl.TurnGroupOff(canvases);
 }
예제 #6
0
 private void DisplayPlayerPosNavigation()
 {
     // if the player is outside of the target zone,
     // display truck notification
     GuideCanvasControl.FadeIn(playerPosNavigation);
 }
예제 #7
0
 public void InitUI()
 {
     GuideCanvasControl.TurnGroupOff(canvases);
 }