Exemplo n.º 1
0
    public void Attack(InputData input)
    {
        var hasTarget = ThisEntity.DynamicData.TargetFinderOutput.Target != null;

        if (!input.IsMoving && hasTarget)
        {
            _weapon.Shoot();
        }
    }
 private void CmdNetShoot()
 {
     weaponController?.Shoot();
 }