Added 3D player model, added better cam movement
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user