public void Launch(Agent agent, ParametricFirearm pf, PFProjectileData data) { this.firingAgent = agent; this.firingPF = pf; this.Read(data); ApplyStartingTrajectory(); }
public void ScrollToNextWeapon() { if (inventory == null) { return; } currentIndex = (currentIndex + 1) % inventory.Count; Current = inventory[currentIndex]; }
private void Awake() { if (inventory == null || inventory.Count <= 0) { Debug.LogWarning("PlayerPFController: Please provide at least one PF in inspector"); } else { Current = inventory[0]; currentIndex = 0; } }
public void OnFire(ParametricFirearm pf) { //On fire }
//Assign these functions in the inspector public void OnCharge(ParametricFirearm pf, float percentage) { //On Change goes here }