General changes

1. Added tetzlaff ui changes (code may need to be shortened)
This commit is contained in:
Evan Nydahl
2022-02-09 13:51:06 -06:00
parent 8fbedf486d
commit 6cd3024767
15 changed files with 1646 additions and 901 deletions

View File

@@ -0,0 +1,29 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using MLAPI;
public class dPlayerIndicator : NetworkBehaviour
{
public GameObject player;
private Vector3 offset;
private Vector3 rad;
void Start()
{
rad = (transform.position - player.transform.position);
}
void Update()
{
//if (!IsLocalPlayer) { return; }
offset = transform.parent.forward * rad.magnitude;
transform.position = new Vector3((player.transform.position.x - offset.x), ((player.transform.position.y - offset.y)), (player.transform.position.z - offset.z));
}
}