Пример #1
0
        public void Launch(Agent agent, ParametricFirearm pf, PFProjectileData data)
        {
            this.firingAgent = agent;
            this.firingPF    = pf;

            this.Read(data);

            ApplyStartingTrajectory();
        }
Пример #2
0
        public void ScrollToNextWeapon()
        {
            if (inventory == null)
            {
                return;
            }


            currentIndex = (currentIndex + 1) % inventory.Count;
            Current      = inventory[currentIndex];
        }
Пример #3
0
 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;
     }
 }
Пример #4
0
 public void OnFire(ParametricFirearm pf)
 {
     //On fire
 }
Пример #5
0
 //Assign these functions in the inspector
 public void OnCharge(ParametricFirearm pf, float percentage)
 {
     //On Change goes here
 }