added first running animation draft

This commit is contained in:
TAASONI3
2023-12-31 13:23:51 +01:00
parent 9ea4951312
commit 7eeafdc890
6 changed files with 4273 additions and 286 deletions

View File

@@ -175,6 +175,7 @@ namespace Assets.Scripts.Player
movement = camera.transform.TransformDirection(movement);
movement.y = 0;
gameObject.transform.Translate(movement * speed * Time.deltaTime);
gameObject.GetComponent<Animator>().SetFloat("velocity", (movement * speed).z);
GameObject.Find("QuestLog").GetComponent<QuestLog>().updateQuests("explore", gameObject, 1);
}