Esempio n. 1
0
        public CollectState(BaseLootItem lootItem, LootConfig _lootConfig, Transform followPoint) : base(lootItem)
        {
            _agent                 = _lootItem._navMeshAgent;
            _agent.speed           = _lootConfig.playerAttractSpeed;
            _refreshRate           = _lootConfig.refreshRate;
            _collectRange          = _lootConfig.collectRange;
            _playerAttractDistance = _lootConfig.playerAttractDistance;

            _followPoint = followPoint;
        }
Esempio n. 2
0
 public BoomState(BaseLootItem lootItem, LootConfig.LootBoomDef boomDef) : base(lootItem)
 {
     _boomDef       = boomDef;
     _collisionMask = LayerMask.GetMask(_maskList);
 }
 public LootItemState(BaseLootItem lootItem)
 {
     _lootItem = lootItem;
 }