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; }
private void TouchPathMaking() { if (Input.touchCount > 0) { PathMakingOnTouch(); } else { gameManager.isPathMaking = false; pathMakingState = PathMakingState.None; } }
public void StopPathMaking() { pathMakingState = PathMakingState.None; gameManager.isPathMaking = false; }
public void StartPathMaking() { pathHandlerBase.CreateNewPath(playerAircraftScript.transform.position); pathMakingState = PathMakingState.MakingPath; aircraftMoveHandler.SetState(PlayerAircraftMoveHandler.State.FollowPath); }