Added 3D player model, added better cam movement

This commit is contained in:
TAASONI3
2023-12-30 20:19:48 +01:00
parent f57389e8a4
commit 9ea4951312
49 changed files with 11586 additions and 1342 deletions

View File

@@ -241,4 +241,23 @@ public class Controls : MonoBehaviour
fight.GetComponent<Fight>().playerAction(6);
}
}
public void OnDisarm()
{
if (player.GetComponent<PlayerGameObject>().isArmed)
{
player.GetComponent<Animator>().SetTrigger("WeaponHandling");
player.GetComponent<Animator>().SetBool("isArmed", true);
player.GetComponent<PlayerGameObject>().isArmed = false;
player.GetComponent<Animator>().SetInteger("objectCategory", 0);
}
else
{
player.GetComponent<Animator>().SetTrigger("WeaponHandling");
player.GetComponent<Animator>().SetBool("isArmed", false);
player.GetComponent<PlayerGameObject>().isArmed = true;
player.GetComponent<Animator>().SetInteger("objectCategory", 0);
}
}
}