V2.5 Change reward function
Add chart Toggle to turn on reward chart real time in game. Add enemy num changer, now can change enemy num in game. Change facing to enemy reward function, while facing center line far from enemy will not get reward any more.
This commit is contained in:
@@ -144,8 +144,15 @@ public class FreeFlyCamera : MonoBehaviour
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (Input.GetKey(KeyCode.M))
|
||||
_active = !_active;
|
||||
|
||||
if (!_active)
|
||||
{
|
||||
Cursor.lockState = _wantedMode = CursorLockMode.None;
|
||||
Cursor.visible = (CursorLockMode.Locked != _wantedMode);
|
||||
return;
|
||||
}
|
||||
|
||||
SetCursorState();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user