예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     CameraMovement.InitCameraBound(0, Width, 0, Length);
     _grid        = new GridStructure(_cellSize, Width, Length);
     InputManager = FindObjectsOfType <MonoBehaviour>().OfType <IInputManager>().FirstOrDefault();
     InputManager.AddListenerOnPointerDownEvent(HandlePoint);
     InputManager.AddOnPointerSecondDownEvent(HandleInputCameraPan);
     InputManager.AddOnPointerSecondUpEvent(HandleInputCameraPanStop);
     UIController.AddOnBuildAreaEvent(StartPlacementMode);
     UIController.AddOnCancelActionEvent(CancelAction);
 }