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; }
private void EquipGun(GunHolster gun) { _current = gun; // TODO: Attach to hands transform }
private void HolsterGun(GunHolster holster) { // TODO: Attach to holster transform & move to holster point }