added crosshair, worked on controls, fixed locals
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user