Exemplo n.º 1
0
    void Awake()
    {
        // Remove null guns
        for (int i = 0; i < _guns.Count; i++)
        {
            GunHolster g = _guns[0];

            if (!g)
            {
                _guns.RemoveAt(i);
                i--;
            }
        }

        if (_guns.Count <= 0)
        {
            Debug.LogWarning("No guns specified.", this);
        }
        else
        {
            _current = _guns[0];
        }

        // Subscribe EarlyUpdate function
        EarlyUpdateManager.EarlyUpdate += EarlyUpdate;
    }
Exemplo n.º 2
0
    private void EquipGun(GunHolster gun)
    {
        _current = gun;

        // TODO: Attach to hands transform
    }
Exemplo n.º 3
0
 private void HolsterGun(GunHolster holster)
 {
     // TODO: Attach to holster transform & move to holster point
 }