public FlyerIdleState(FlyerFSM stateMachine, Flyer flyer)
    {
        _stateMachine = stateMachine;
        _flyer        = flyer;

        _playerInRange = flyer.PlayerDetector.PlayerInRange;
    }
示例#2
0
    public FlyerHitState(FlyerFSM stateMachine, Flyer flyer)
    {
        _stateMachine = stateMachine;

        _receiveHit = flyer.ReceiveHit;
        _hitVolume  = flyer.HitVolume;
    }
示例#3
0
    public FlyerReturningState(FlyerFSM stateMachine, Flyer flyer)
    {
        _stateMachine = stateMachine;
        _flyer        = flyer;

        _movement = flyer.Movement;
    }
示例#4
0
    public FlyerChasingState(FlyerFSM stateMachine, Flyer flyer)
    {
        _stateMachine = stateMachine;
        _flyer        = flyer;

        _playerInRange = flyer.PlayerDetector.PlayerInRange;
        _movement      = flyer.Movement;
    }