Cleaned up a bit of code, need to work on camera handlign (Isn't as smooth as I want it to be)
This commit is contained in:
@@ -61,19 +61,9 @@ namespace Assets.Scripts.Player
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
if (player == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (player.getStat("Killcount").getAmount() == -1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (uihandler.state == UIState.DEATH)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (player == null) return;
|
||||
if (player.getStat("Killcount").getAmount() == -1) return;
|
||||
if (uihandler.state == UIState.DEATH) return;
|
||||
|
||||
getRotation();
|
||||
regeneratePlayer();
|
||||
|
||||
Reference in New Issue
Block a user