added NetworkManager compontent

This commit is contained in:
DerTyp187
2021-10-20 07:53:44 +02:00
parent 0ce5bb61d6
commit c913fff83a
7 changed files with 312 additions and 225 deletions

View File

@@ -11,11 +11,19 @@ public class DebugCanvas : MonoBehaviour
public float deltaTime;
private void Update()
{
DebugTextGrounded.text = "isGrounded: " + Player.GetComponent<PlayerController>().isGrounded.ToString();
{/*
if(Player == null)
{
Player = GameObject.FindGameObjectWithTag("Player").gameObject;
}
else
{
DebugTextGrounded.text = "isGrounded: " + Player.GetComponent<PlayerController>().isGrounded.ToString();
deltaTime += (Time.deltaTime - deltaTime) * 0.1f;
float fps = 1.0f / deltaTime;
fpsText.text = Mathf.Ceil(fps).ToString() + "FPS";
deltaTime += (Time.deltaTime - deltaTime) * 0.1f;
float fps = 1.0f / deltaTime;
fpsText.text = Mathf.Ceil(fps).ToString() + "FPS";
}
*/
}
}