Beispiel #1
0
        public void OnTriggerEnter(Collider triggeringCollider)
        {
            if (!IsActive)
            {
                return;
            }
            TriggeringAgent = triggeringCollider.GetComponent <Agent>();

            if (TriggeringAgent == null)
            {
                return;
            }
            TriggeringAgent.WeaponSystem.AddWeapon(EnumUtility.EntityTypeToWeaponType(EntityType));

            Deactivate();
        }