예제 #1
0
 public PathMakingHandler(GameManager gameManager, PlayerPathHandler pathHandlerBase,
                          PlayerAircraftMoveHandler aircraftMoveHandler, PlayerAircraftScript playerAircraftScript)
 {
     pathMakingState           = PathMakingState.None;
     this.gameManager          = gameManager;
     this.pathHandlerBase      = pathHandlerBase;
     this.aircraftMoveHandler  = aircraftMoveHandler;
     this.playerAircraftScript = playerAircraftScript;
 }
예제 #2
0
 private void TouchPathMaking()
 {
     if (Input.touchCount > 0)
     {
         PathMakingOnTouch();
     }
     else
     {
         gameManager.isPathMaking = false;
         pathMakingState          = PathMakingState.None;
     }
 }
예제 #3
0
 public void StopPathMaking()
 {
     pathMakingState          = PathMakingState.None;
     gameManager.isPathMaking = false;
 }
예제 #4
0
 public void StartPathMaking()
 {
     pathHandlerBase.CreateNewPath(playerAircraftScript.transform.position);
     pathMakingState = PathMakingState.MakingPath;
     aircraftMoveHandler.SetState(PlayerAircraftMoveHandler.State.FollowPath);
 }