added crosshair, worked on controls, fixed locals

This commit is contained in:
TAASONI3
2024-06-22 18:16:11 +02:00
parent 4d2c52ded5
commit 7b9683bb49
15 changed files with 984 additions and 454 deletions

View File

@@ -10,6 +10,8 @@ using Assets.Scripts.Races;
using Newtonsoft.Json.Linq;
using UnityEngine.InputSystem;
using Assets.Scripts.InteractableObjects;
using UnityEngine.UIElements;
using UnityEngine.Animations;
namespace Assets.Scripts.Player
{
@@ -185,6 +187,10 @@ namespace Assets.Scripts.Player
GameObject.Find("QuestLog").GetComponent<QuestLog>().updateQuests("explore", gameObject, 1);
}
public void rotate(Vector2 input, float speed){
transform.Rotate(Vector3.up, input.x * speed * 10 * Time.deltaTime);
}
public void getRotation()
{
GameObject needle = GameObject.Find("imgNeedle");