Ejemplo n.º 1
0
 private void StatsRoutine()
 {
     if (_CharacterCollected)
     {
         if (skillToggle)
         {
             LocalSkills.ApplyAmmoPack();
         }
     }
 }
Ejemplo n.º 2
0
        private static void HandleAmmoPackPickup(NetworkMessage netMsg)
        {
            GameObject gameObject = netMsg.reader.ReadGameObject();

            if (!NetworkServer.active && gameObject)
            {
                SkillLocator component = gameObject.GetComponent <SkillLocator>();
                if (component)
                {
                    component.ApplyAmmoPack();
                }
            }
        }
 // Token: 0x06000B1E RID: 2846 RVA: 0x0003738C File Offset: 0x0003558C
 private void OnTriggerStay(Collider other)
 {
     if (NetworkServer.active && this.alive && TeamComponent.GetObjectTeam(other.gameObject) == this.teamFilter.teamIndex)
     {
         SkillLocator component = other.GetComponent <SkillLocator>();
         if (component)
         {
             this.alive = false;
             component.ApplyAmmoPack();
             EffectManager.instance.SimpleEffect(this.pickupEffect, base.transform.position, Quaternion.identity, true);
             UnityEngine.Object.Destroy(this.baseObject);
         }
     }
 }