This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private PlayerInput PlayerInputComponent => _playerInputComponent ??= GetComponent<PlayerInput>(); | |
//Can be better with GUID instead of string, but will do for now | |
private InputAction DragPosition => _dragPosition ??= PlayerInputComponent.actions.FindAction("DragPosition"); | |
#region Event Functions | |
private void Update() { | |
if (StartPoint.gameObject.activeInHierarchy && EndPoint.gameObject.activeInHierarchy) | |
Debug.DrawLine(StartPoint.position, EndPoint.position, Color.white, 0, false); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
If you get "END!" without any results, we have a problem. | |
My result is: | |
"2567 | |
2576 | |
END!" | |
*/ | |
package Q_33467878; | |
import java.util.regex.Matcher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
USE NEGATIVE NUMBERS TO EXIT, IN ANY INPUT | |
*/ | |
package Q_33467177; | |
import java.awt.Point; | |
import java.io.FileNotFoundException; | |
import java.io.PrintWriter; | |
import java.util.Arrays; | |
import java.util.Scanner; |