mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2026-07-31 15:29:04 +02:00
Weapons are now in correct position
When u switch or pickup weapons u have them now in your hand. - Scrollup doesnt work on the highest weapon index (will be fixed soon) - Shooting with the hand will give an error because there is no animation "shoot" on the hand (PLEASE someone make an animation for the hand!!!!)
This commit is contained in:
@@ -20,6 +20,8 @@ public class Weapon : MonoBehaviour
|
||||
[SerializeField] GameObject bulletExit;
|
||||
[SerializeField] bool allowAction = true;
|
||||
[SerializeField] Animator weaponAnimator;
|
||||
[SerializeField] Transform gunRightREF;
|
||||
[SerializeField] Transform gunLeftREF;
|
||||
|
||||
public bool Active { get => active; set => active = value; }
|
||||
public weaponKinds WeaponKind { get => weaponKind; }
|
||||
@@ -33,6 +35,8 @@ public class Weapon : MonoBehaviour
|
||||
public GameObject BulletExit { get => bulletExit; }
|
||||
public bool AllowAction { get => allowAction; set => allowAction = value; }
|
||||
public Animator WeaponAnimator { get => weaponAnimator; }
|
||||
public Transform GunLeftREF { get => gunLeftREF; }
|
||||
public Transform GunRightREF { get => gunRightREF; }
|
||||
|
||||
private void Start()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user