reverted last change partly (cam), added animation

This commit is contained in:
TAASONI3
2023-12-27 12:36:09 +01:00
parent 0865eee42f
commit 02a20443c2
16 changed files with 1169 additions and 137 deletions

View File

@@ -20,7 +20,7 @@ public class Fight : MonoBehaviour
this.enemy = enemy;
this.player = player;
enemy.GetComponent<Enemy>().scaleEnemy(player.GetComponent<PlayerGameObject>());
enemy.transform.rotation = Quaternion.Euler(0, player.transform.rotation.y + 180f, 0);
enemy.transform.rotation = Quaternion.Euler(0, GameObject.Find("Main Camera").transform.rotation.y, 0);
uihandler = GameObject.Find("UIHandler").GetComponent<UIHandler>();
uihandler.openFight();