BITFALL/Assets/Artists/Scripts/GameMode/BotRandomWeaponController.cs

31 lines
627 B
C#
Raw Normal View History

2023-11-30 00:23:23 +08:00
using System.Collections;
using System.Collections.Generic;
using BITFALL.Entities.Equipment;
using BITKit;
using BITKit.Entities;
using UnityEngine;
namespace BITFALL.GameMode
{
public class BotRandomWeaponController : EntityBehavior
{
[Inject] private IHealth _health;
[Inject] private IEntityEquipment _equipment;
public override void OnStart()
{
base.OnStart();
_health.OnSetAlive += OnSetAlive;
}
private void OnSetAlive(bool obj)
{
if (obj is false) return;
2024-04-13 01:10:30 +08:00
//var random = lootDrop.GetGuaranteeedLoot().Random().GetComponent<IBasicItem>();
2023-11-30 00:23:23 +08:00
2024-04-13 01:10:30 +08:00
//_equipment.EntryEquip(random);
2023-11-30 00:23:23 +08:00
}
}
}