示例#1
0
    public override void OnSetHandler()
    {
        initialPoint   = MoveMarkerManager.CurrentMarkerPositionOnCamera();
        initialPoint.z = 0;

        currentPoint = PlayerController.LastInputPosition;

        MoveMarkerManager.ClearRotationVisualizer();
    }
示例#2
0
 void Awake()
 {
     if (instance == null)
     {
         instance       = this;
         nullMoveMarker = (new GameObject("NullMoveMarker").AddComponent <NullMoveMarker>());
         nullMoveMarker.transform.SetParent(this.transform);
         currentMarker = nullMoveMarker;
         moveMarkers   = new List <MoveMarker>();
     }
     else
     {
         Destroy(this.gameObject);
         Debug.LogError("Destroyed duplicate instance of MoveMarkerManager");
     }
 }
示例#3
0
 public override void OnPlayerInput()
 {
     if (MoveMarkerManager.CurrentMarker != this)
     {
         MoveMarkerManager.SetCurrentMarker(this);
     }
     else
     {
         if (MoveMarkerMenu.Instance.Open)
         {
             PlayerController.Instance.Moving = true;
             MoveMarkerMenu.Instance.HideMenu();
             this.StartSafeCoroutine(SmoothFadeBoat(false, .25f));
         }
         else
         {
             this.StartSafeCoroutine(MoveMarkerMenu.Instance.ShowMenu(transform.position));
         }
     }
 }
示例#4
0
 bool SetRotation()
 {
     MoveMarkerManager.SetTargetRotation(initialPoint, currentPoint);
     MoveMarkerManager.IndicateRotationMoveSet();
     return(releasesControlOnAction);
 }
示例#5
0
 public override void HandleDragInput()
 {
     currentPoint = PlayerController.LastInputPosition;
     MoveMarkerManager.SetTargetRotation(initialPoint, currentPoint);
 }
示例#6
0
 bool SetFiringTrajectory()
 {
     MoveMarkerManager.IndicateFiringMoveSet();
     MoveMarkerManager.SetTargetFiringStrength(GetShotVector());
     return(releasesControlOnAction);
 }
示例#7
0
 public override void HandleDragInput()
 {
     currentPoint = PlayerController.LastInputPosition;
     MoveMarkerManager.SetTargetFiringStrength(GetShotVector());
 }
示例#8
0
 void Awake()
 {
     if (instance == null){
         instance = this;
         nullMoveMarker = (new GameObject("NullMoveMarker").AddComponent<NullMoveMarker>());
         nullMoveMarker.transform.SetParent(this.transform);
         currentMarker = nullMoveMarker;
         moveMarkers = new List<MoveMarker>();
     }
     else {
         Destroy(this.gameObject);
         Debug.LogError("Destroyed duplicate instance of MoveMarkerManager");
     }
 }